For this Question: Write a program print total number of days in a month using switch case.First line of the input contains Month Number

<b>Constraints</b>
1 <= Month <= 12Print total number of days in a month (in general).Sample Input :
3

Sample Output : 
31, I have written this Solution Code: def MonthDays(N):
    if N==1 or N==3 or N==5 or N==7 or N==8 or N==10 or N==12:
        print(31)
    elif N==4 or N==6 or N==9 or N==11:
        print(30)
    elif N==2:
        print(28)
    else:
        print("Months out of range")
N = int(input())
MonthDays(N), In this Programming Language: Python, Now tell me if this Code is compilable or not?