migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
7
python-csi160/week04/Week-4Practice-Problems/part4.py
Normal file
7
python-csi160/week04/Week-4Practice-Problems/part4.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
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")
|
Loading…
Add table
Add a link
Reference in a new issue