7 lines
No EOL
170 B
Python
7 lines
No EOL
170 B
Python
year = int(input('Enter the year: '))
|
|
|
|
# Prints Yes or No based on if year is in the 21st century
|
|
if year >= 2001 and year <= 2100:
|
|
print("YES")
|
|
else:
|
|
print("NO") |