Write a program that reads a date as an integer In the format MMDDYYYY. That prints out the date in the format of ,
Answers
Answered by
2
Which format ,dear.....
Answered by
2
Here is how you do it... It is pretty self explanatory
CODE:
months = {01:'January',02:'February',03:'March',04:'April',05:'May',06:'June',07:'July',08:'August',09:'september',10:'october',11:'November',12:'December'}
format = str(input('Input your date:'))
month,date,year = months[format[:2]],format[2:4],format[4:8]
print(f'{month} {date}, {year}')
HOPE THIS WILL HELP YOU
PLEASE MARK AS BRAINLIEST
CODE:
months = {01:'January',02:'February',03:'March',04:'April',05:'May',06:'June',07:'July',08:'August',09:'september',10:'october',11:'November',12:'December'}
format = str(input('Input your date:'))
month,date,year = months[format[:2]],format[2:4],format[4:8]
print(f'{month} {date}, {year}')
HOPE THIS WILL HELP YOU
PLEASE MARK AS BRAINLIEST
Similar questions
English,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
English,
10 months ago
Math,
10 months ago
Computer Science,
1 year ago
Science,
1 year ago