Question: > CEIS110: Introduction to Programming home > 2.1: If-else statement Learn how our autograder works 569392.4224038.qx3zay7 1 year = int(input()) 2 if year >= 2101:

 > CEIS110: Introduction to Programming home > 2.1: If-else statement Learn

> CEIS110: Introduction to Programming home > 2.1: If-else statement Learn how our autograder works 569392.4224038.qx3zay7 1 year = int(input()) 2 if year >= 2101: 3 print('Distant future') 4 elif year >= 1900: 5 print(' Long ago') 6 elif year >= 2001: 7 print('21 century') 8 else year >= 1901 9 print( '20th century') Run X Not all tests passed X Test aborted Exited with return code 1. File "/home/runner/local/submission/sample_program/main.py", line 3 print ( 'Distant future' ) IndentationError: expected an indented block after 'if' statement on line 2

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 Programming Questions!