Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mag = float(input("Please enter the magnitude of the earthquake: "))
- if mag < 0:
- print("Invalid Input!! Magnitude can not be less than zero")
- exit()
- if mag < 2:
- print("It was a Micro earthquake,")
- elif mag < 3:
- print("It was a Very minor earthquake,")
- elif mag < 4:
- print("It was a Minor earthquake,")
- elif mag < 5:
- print("It was a Light earthquake,")
- elif mag < 6:
- print("It was a Moderate earthquake,")
- elif mag < 7:
- print("It was a Strong earthquake,")
- elif mag < 8:
- print("It was a Major earthquake,")
- elif mag < 10:
- print("It was a Great earthquake,")
- else:
- print("It was a Meteoric earthquake,")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement