Write a python programm that read an integers between 1 and 12 and print the month of the year in English

 #5Write a python programm that read an integers between

# 1 and 12  and print the month of the year in English
month=int(int(input("Enter number between 1 to 12 :")))
match month:
    case 1:
        print("january")
    case 2:
        print("February")
    case 3:
        print("march")
    case 4:
        print("April")
    case 5:
        print('May')
    case 6:
        print("june")
    case 7:
        print("July")
    case 8:
        print("August")
    case 9:
        print("September")
    case 10:
        print("October")
    case 11:
        print("November")
    case 12:
        print("December")

Comments

Popular posts from this blog

Write a python script to display the current date and time. First create variables to store date and time, then display date and time in proper format (like: 13-8-2022 and 9:00 PM """