Professional Documents
Culture Documents
Lab 1
Lab 1
Lab 1
enter percentage 31
def far():
c=float(input("Enter the Celsius value:"))
f=c*(9/5)+32
print("Temperature in Fahrenite:{0:0.2f}\n".format(f))
def cel():
f=float(input("Enter the Fahrenite value:"))
c=(f-32)*(5/9)
print("Temperature in Celsius:{0:0.2f}\n".format(c))
def kel():
c=float(input("Enter the celcius value:"))
k=c+273
print("Temperature in kelvin:{0:0.2f}\n".format(k))
print_menu()
choice=input("Which Conversation would you like")
if (choice=='1'):
far()
elif (choice=='2'):
cel()
elif (choice=='3'):
kel()
else:print("Invalid")
1.celsius to fahrenheit
2.fahrenheit to celsius
3.Celsius to Kelvin
Temperature in kelvin:306.00
In [ ]: