Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How should an expert witness deal with opposing experts?

Answered: 1 week ago

Question

3. Identify opportunities to improve this process.

Answered: 1 week ago

Question

demonstrate the importance of induction training.

Answered: 1 week ago