6. Functions split
and join
¶
6.1. Exercise¶
Write a program that asks for a birth date in the format “dd/mm/yyyy” and
converts this date to the format “<day> of <month> of <year>” using the pre-written list
months
. Save the result in the variable birth_date
and print this variable. Remember
that .split()
returns a list and you can pass the character to separate a string as an argument.
Save the day, month and year in string format in the variables day
, month
and year
.
You have attempted of activities on this page