Advertisement
Guest User

Temperature.py

a guest
Oct 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. clicks = int(input("By how many clicks has the dial been turned?\n"))
  2.  
  3. # TODO calculate the temperature, and report it back to the user
  4.  
  5. difference = clicks % 51
  6. temp = (40 + difference)
  7.  
  8. print("The temperature is", temp, "degrees!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement