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
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