blahedo

0923-2

Sep 23rd, 2026
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. #  23 sep
  2.  
  3. if 3 < 4:
  4.     print("Yes")
  5.     print("In the way...")
  6. else:
  7.     print("huh?")
  8.  
  9.  
  10. scale = input("Which scale C or F? ")
  11. temp = float(input("Temp? "))
  12. if scale == "C":
  13.     if temp > 0:
  14.         print("Above freezing")
  15.     elif temp == 0:
  16.         print("Freezing")
  17.     else:
  18.         print("Below freezing")
  19.  
  20. elif scale == "F":   # or else ?
  21.     if temp > 32:
  22.         print("Above freezing")
  23.     else:
  24.         print("cold")
  25.  
  26. else:
  27.     print("Sorry, we don't handle that scale")
  28.  
  29.  
  30.    
Advertisement
Add Comment
Please, Sign In to add comment