1
1
2.
a = int(input("Enter Year"))
if(a%400 ==0):
print("It is a leap year")
else:
if(a%4 ==0 and a%100 !=0):
print("It is a leap year")
else:
print("It is not a leap year")
3.
b=1
while(b==1):
print(" 1. <-- Celsius to Fahrenheit")
print(" 2. <-- Fahrenheit to Celsius")
print(" 3. <-- Exit")
a = int(input("Enter 1,2 or 3 \n "))
if(a == 1):
y = eval(input("Enter Celsius :-"))
c = (y*1.8) + 32
print("",y,"Celsius is",c,"Fahrenheit \n")
elif(a == 2):
z = eval(input("Enter Fahrenheit :-"))
f = (z - 32) * 5/9
print("" ,z, "Fahrenheit is" ,f,"Celsius \n")
elif(a == 3):
exit()
else:
print("Invalid Code Number")
4.
5.
6.
a = input("Enter Month")
b = a.lower()