Question: Python: If input _ year is in the inclusive range: 1 9 6 0 - 1 9 6 9 , output 'The 6 0 s

Python: If input_year is in the inclusive range:
1960-1969, output 'The 60s'.
1970-1979, output 'The 70s'.
1980-1989, output 'The 80s'.
Otherwise, output 'Not in the period of research'.
Ex 1: If the input is 1966, then the output is:
The 60s
Ex 2: If the input is 1976, then the output is:
The 70s
Ex 3: If the input is 1984, then the output is:
The 80s
Ex 4: If the input is 2005, then the output is:
Not in the period of research

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!