Computer Science, asked by amanrajajay6109, 9 months ago

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 avinashmurmu99311
2

Which format ,dear.....

Answered by dakshayshivanand7
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
Similar questions