Classwork/Homework:
Search the internet for the Richter magnitude scale and write a program, RichterScale_YI.py that prompts for the number scale and prints the description of the earthquake intensity: micro, minor, light, moderate, strong, major, and great. Use nested if/else statements.
9.4. Chaining comparison operators
Comparison operators can be chained. Consider the following examples:
>> x = 2
>> 1 < x < 3
True
>> 10 < x < 20
False
>> 3 > x <= 2
True
>> 2 == x < 4
True
The comparison is performed between each pair of terms to be evaluated. For instance in the first example, 1
The flowchart for the Richter scale program – Use google docs: drawing or draw.io