Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 parts of the program below to solve the problem as stated above. Do not add any additional lines of code. Only missing code please. :
# 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started