#TC1014 #WSQ05 Temperature

1 min read

Thanks to this WSQ i learned to apply an if function in python, i used this link to know the boiling point of water 🙂 http://chemistry.about.com/od/howthingswork/f/boiling-point-of-water.htm 

This link also helped me to know better about the if function and other stuff in python. http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/io.html

Here’s my code. 

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

CC BY 4.0 #TC1014 #WSQ05 Temperature by Gilberto Rogel García is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.