The date February 9th, 2018, is a magic date because when we
write it in the following format,
the month times the day equals the year:
2/9/18
Write a script (Python) that asks the user to enter a month (in
numeric form), a day, and a two-digit year.
You should then determine whether the month times the day is equal
to the year. If so, it
should display a message saying the date is magic. Otherwise, it
should display a message
saying the date is not magic.
#reading inputs from user
day=int(input("Enter day: "))
month=int(input("Enter month: "))
year=int(input("Enter 2 digit year: "))
#checking month * day == year
if day * month==year:
print("Date is magic")
else:
print("Date is not magic")
Note : If you like my answer please rate and help me it is very Imp for me
Get Answers For Free
Most questions answered within 1 hours.