#Lab Part II q 2 month=int(input("enter month numeric value 1 - 12 ")) while(month!=0): #January - 1, March - 3, May - 5, July - 7, August - 8 #Oct - 10, Dec - 12 will have 31 days cond1 = (month%2!=0) and month<=7 cond2 = (month%2==0) and month>=8 if(month<=0 or month>12): print("invalid month") elif(month==2): print("February 28 or 29 days") elif(cond1==True or cond2==True): print("31 days") else: print("30 days") month=int(input("enter month numeric value 1 - 12 "))