Answer to Question #300505 in Python for kim

Question #300505

1.How do i write a program that prints different messages for different months of the year. 



1
Expert's answer
2022-02-21T15:03:27-0500
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 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS