Skip to content

Instantly share code, notes, and snippets.

@gilrg18
Created March 3, 2015 01:20
Show Gist options
  • Save gilrg18/c842a8cc9a585de5b059 to your computer and use it in GitHub Desktop.
Save gilrg18/c842a8cc9a585de5b059 to your computer and use it in GitHub Desktop.
wsq05.py
f=int(input("Give me the temperature in Farenheit that you want to convert to Celsius: "))
c= 5*(f-32)/9
print("The temperature in Celsius is: ", int(c)) ###i put the c in a parenthesis using an int so it gives the value without decimals
if c>=100:
print ("Water boils at this temperature") ###note that you have to ident this line in order for this to work
else:
print ("Water does not boil at this temperature") ###note that u have to ident this line in order for this to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment