Advertisement
davide1409

celsToFahr

Nov 19th, 2019
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. def celsToFahr(tempCels) :
  2. # @param tempCels: float (temperatura in gradi Celsius)
  3.   x = tempCels*9/5.0
  4.   y = x+32
  5.  
  6.   print 'valore temperatura in gradi Celsius: ', tempCels
  7.   print 'valore temperatura in gradi Fahrenheit: ', y
  8.  
  9.  
  10. c = 20
  11. celsToFahr(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement