Question: Create a python program using basic maths and formatting strings feature ( f string ) to calculate and display how many days, weeks and months

Create a python program using basic maths and formatting strings feature (f string) to calculate and display how many days, weeks and months we have left if we live until 90 yeras old.
Your program should read your current age and output the message You have x days, y weeks and z months left
Assume 1 year =365 days, 52 weeks, 12 months.
Run your program for 3 test cases (age is 67,20,45)
Sample output for 1 test case is shown below
What is your current age?
67
You have 8395 days, 1196 weeks and 276 months left
 Create a python program using basic maths and formatting strings feature

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!