Question: code in python: Build a program that askes for the user to input their birthday. Capture the birthdate and do the math to calculate how

code in python:

Build a program that askes for the user to input their birthday.

Capture the birthdate and do the math to calculate how many days between todays date and their

birthday.

If their birthday has already passed, show the message Its been XX days since your birthday

If their birthday is coming up, show the message Its XX days until your birthday

If today is their birthday, show the message Happy Birthday!

Note: Date math produces a datatype called timedelta. In order to make this work, you have to

capture the number of days in a string and then parse out what you need. Make sure you account

for negative numbers if your birthday has passed.

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!