Advertisement
dkyoseff

Conditional Statements - Lab / 06. Speed Info

Jul 5th, 2022
940
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. speed = float(input())
  2.  
  3. if 0 < speed <= 10:
  4.     print('slow')
  5.  
  6. elif 10 <= speed <= 50:
  7.     print('average')
  8.  
  9. elif 50 <= speed <= 150:
  10.     print('fast')
  11.  
  12. elif 150 <= speed <= 1000:
  13.     print('ultra fast')
  14.  
  15. elif speed > 1000:
  16.     print('extremely fast')
  17.  
  18. else:
  19.     print('slow')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement