Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # Hurricane Evaluator
- # Evaluates a storm according to its wind speed
- # Kyle Zhou December 22, 2012
- speed = input("Enter the wind speed in km/h: ")
- speed = int(speed)
- if speed <= 62:
- print("Tropical Depression")
- elif speed > 62 and speed <= 118:
- print("Tropical Storm")
- elif speed > 118 and speed <= 153:
- print("Category One Hurricane")
- elif speed > 153 and speed <= 177:
- print("Category Two Hurricane")
- elif speed > 177 and speed <= 208:
- print("Category Three Hurricane")
- elif speed > 208 and speed <= 251:
- print("Category Four Hurricane")
- elif speed > 251:
- print("Category Five Hurricane")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement