AssignmentGuru

Solution: Reddit: broltergeist: My first homework assignment

Jun 21st, 2016
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # http://python.assignmentsolutionguru.com/
  2.  
  3. try:
  4.     clicks = int(input("By how many clicks to the right has the dial been rotated? "))
  5. except:
  6.     print("Invalid input.. exiting...")
  7.     exit(1)
  8.    
  9. diff = clicks % 51
  10. temp = 40 + diff
  11. print ("The temperature is", temp, "degrees.")
  12.  
  13. # http://python.assignmentsolutionguru.com/
Add Comment
Please, Sign In to add comment