Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. t = Temperature()
  2. scale = raw_input("Celsius, Fahrenheit or Kelvin ")
  3. n = raw_input("How much? ")
  4.  
  5. n = float(n)
  6.  
  7. if scale == "C" or "c":
  8. t.convertCelsius(n)
  9.  
  10. elif scale == "F" or "f":
  11. t.convertFahreheit(n)
  12.  
  13. elif scale == "K" or "k":
  14. t.convertKelvin(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement