number = int(input())
if number == 1:
print("January")
elif number == 2:
print("February")
elif number == 3:
print("March")
elif number == 4:
print("April")
elif number == 5:
print("May")
elif number == 6:
print("June")
elif number == 7:
print("July")
elif number == 8:
print("August")
elif number == 9:
print("September")
elif number == 10:
print("October")
elif number == 11:
print("November")
elif number == 12:
print("December")
else:
print("incorrect input")
a = ["January","February","March","April","May","June","July","August","September","October","November","December"]
n = int(input("number: "))
if 1 <= n <= 12:
print(a[n-1])
print("err")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = int(input())
if number == 1:
print("January")
elif number == 2:
print("February")
elif number == 3:
print("March")
elif number == 4:
print("April")
elif number == 5:
print("May")
elif number == 6:
print("June")
elif number == 7:
print("July")
elif number == 8:
print("August")
elif number == 9:
print("September")
elif number == 10:
print("October")
elif number == 11:
print("November")
elif number == 12:
print("December")
else:
print("incorrect input")
a = ["January","February","March","April","May","June","July","August","September","October","November","December"]
n = int(input("number: "))
if 1 <= n <= 12:
print(a[n-1])
else:
print("err")