1.How do i write a program that prints different messages for different months of the year.
month = input()
if month is "January":
print(msg1)
elif month is "Febuary":
print(msg2)
elif month is "March":
print(msg3)
elif month is "April":
print(msg4)
elif month is "May":
print(msg5)
elif month is "June":
print(msg6)
elif month is "July":
print(msg7)
elif month is "August":
print(msg8)
elif month is "September":
print(msg9)
elif month is "October":
print(msg10)
elif month is "November":
print(msg11)
elif month is "December":
print(msg12)
# msg#no some message
Comments
Leave a comment