Computer Science, asked by swatide735, 3 months ago

write a program to input any month number between 1 to 12 and print the coressponding month name. For ex-1 for january​

Answers

Answered by jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

from datetime import date

months = lambda: dict([(i, date(2021, i, 1).strftime('%B')) for i in range(1, 13)])

print("Month:", months()[(n := int(input("num: ")))])

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by Japji21
0

Answer:

rom datetime import date

months = lambda: dict([(i, date(2021, i, 1).strftime('%B')) for i in range(1, 13)])

print("Month:", months()[(n := int(input("num: ")))])

Similar questions