Advertisement
Sparkster

Untitled

Jul 18th, 2013
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. # Sparky's simple Fahrenheit to Celsius converter
  2.  
  3. def converter(fahrenheit):
  4.     celsius = 5 / float(9) * (fahrenheit - 32)
  5.     print("%d Fahrenheit in Celsius is: %.2f C") % (fahrenheit, celsius)
  6.  
  7. print converter(95)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement