Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = Temperature()
- scale = raw_input("Celsius, Fahrenheit or Kelvin ")
- n = raw_input("How much? ")
- n = float(n)
- if scale == "C" or "c":
- t.convertCelsius(n)
- elif scale == "F" or "f":
- t.convertFahreheit(n)
- elif scale == "K" or "k":
- t.convertKelvin(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement