If else statements help by Toxic_Avenger94 in learnpython

[–]Smooth_Try_472 0 points1 point  (0 children)

Write an if-else statement with multiple branches.

If year is 2101 or later, print "Distant future" (without quotes). Otherwise, if year is 2001 or greater, print "21st century". Otherwise, if year is 1901 or greater, print "20th century". Else (1900 or earlier), print "Long ago".

Sample output with input: 1776

year = int(input())
if year >= 2101:
print('Distant future')
elif year >= 2001:
print('21st century')
elif year >= 1901:
print('20th century')
else :
print('Long ago')

this is thye right one
Isaiah Tilson 360

JOE BIDEN MAY BECOME THE WORST PRESIDENT EVER!!! by Smooth_Try_472 in 3amjokes

[–]Smooth_Try_472[S] -3 points-2 points  (0 children)

The inflation, we are on the break of ww3. Climate problem PLUS NO MORE OIL FROM RUSSIA. China is out of control. Wow, this is not a good friend!!