Question: in Python Fill in the missing parts of the program below to solve the problem as stated above. Do not add any additional lines of

in Python Fill in the missing parts of the program below to solve the problem as stated above. Do not add any additional lines of code. ONLY FILL in the missing pieces of code. Thank you.
# MagicDate.py
# Get month
month = int(input('Enter the month in numeric form: '))
# Get day
day =________________________________ #1
# Get year
year = int(input('Enter the year in two digit format: '))
# Check if month input is valid
if __________________________________ #2
print('Error: invalid month input')
# Check if day input is valid
elif day >31 or day <1:
________________________ #3
# Check if year input is valid
elif year >99 or year <0:
print('Error: invalid year input')
# Input is valid
else:
# Display magic date evaluation
print('The date is ', month, '/', day, '/', year)
if _______________________ #4
print ('This is a magic date.')
else:
___________________________ #5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!