Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ############Conversions and shit that I don't know how to do#############
- #well maybe
- x = raw_input("what unit would you like to be the base conversion, letter?: ")
- ###########################if celsius###################################
- if x.lower == "c":
- w = raw_input("what is the unit of the second number?: ")
- if w.lower == "k":
- c_to_k = raw_input("what is the celcius number?: ")
- print c_to_k + 273.15
- elif w.lower == "f":
- c_to_f = raw_input("what is the celcius number?: ")
- a = c_to_f * .555
- print a + 32
- ########################if fahrenheit#########################################
- elif x.lower == "f":
- z = raw_input("what is the unit of the second number?: ")
- if z.lower == "c":
- f_to_c = raw_input("what is the fahrenheit number?: ")
- b = f_to_c - 32
- print b * 0.555
- elif z.lower == "k":
- f_to_k = raw_input("what is the fahrenheit number?: ")
- c = f_to_k + 459.67
- print c * 0.555
- ############################if kelvin###########################################
- elif x.lower == "k":
- y = raw_input("what is the unit of the second number?: ")
- if y.lower == "c":
- k_to_c = raw_input("What is the Kelvin number?: ")
- print k_to_c - 273.15
- elif y.lower == "f":
- k_to_f = raw_input("What is the Kelvin number?: ")
- d = k_to_f * 0.555
- print d - 459.67
Add Comment
Please, Sign In to add comment