ChamplainTechJournals/python-csi160/week04/Week-4Practice-Problems/part4.py
2025-04-19 23:42:08 -04:00

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")