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 intinputEnter the month in numeric form:
# Get day
day #
# Get year
year intinputEnter the year in two digit format:
# Check if month input is valid
if #
printError: invalid month input'
# Check if day input is valid
elif day or day :
#
# Check if year input is valid
elif year or year :
printError: invalid year input'
# Input is valid
else:
# Display magic date evaluation
printThe date is month, day, year
if #
print This is a magic date.
else:
#
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
