Can someone please help me solve me?
![Can someone please help me solve me class=](https://us-static.z-dn.net/files/d18/c5a18a0b72ac88f56f304dd211d97ff5.png)
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"
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')
See more about python at brainly.com/question/23271145
#SPJ1
Answer:
Explanation:
year = int(input("Enter a year: "))
if year >= 2101:
print("Distant future")
elif year >= 2001:
print("21st century")
elif year >= 1901:
print("20th century")
elif year >= 1900:
print("Long ago")
else:
print("Invalid year")