Quickpaste.it
Create Paste
Top Pastes
Recent Pastes
Settings
Account
Untitled Paste
Created By
Anonymous
Expires never
Raw
Download
0
TEMPERATURE CONVERSION choice=int(input("enter the choice:0/1/2")) if (choice==1): celsius=float(input("Enter the temperature in celsius")) fahrenheit = (9/5)*celsius + 32 print(“Fahrenheit",fahrenheit) elif(choice==2): fahrenheit=float(input("Enter the temperature in Fahrenheit:")) celsius=(5/9)*(fahrenheit-32) print("Celsius", celsius) else: print("invalid input") OUTPUT: enter the choice:0/1/2 1 Enter the temperature in celsius 36 Fahrenheit 96.8 enter the choice:0/1/22 Enter the temperature in Fahrenheit:100 Celsius 37.77777777777778 enter the choice:0/1/20 invalid input