How To Print Month Name
#TO PRINT A MONTH NAME
print('MONTH NAME')
mnum=int(input('Enter Month Number : '))
if(1>mnum>12):
print('ERROR')
else:
if(mnum==1):
print('January')
elif(mnum==2):
print('February')
elif(mnum==3):
print('March')
elif(mnum==4):
print('April')
elif(mnum==5):
print('May')
elif(mnum==6):
print('June')
elif(mnum==7):
print('July')
elif(mnum==8):
print('August')
elif(mnum==9):
print('September')
elif(mnum==10):
print('October')
elif(mnum==11):
print('November')
else:
print('December')
Made By:-
Nilay Saraf
Comments
Post a Comment