Knowee
Questions
Features
Study Tools

1234567from datetime import datep = input("dob in ddmmyyyy format: ")l = input("today's date in ddmmyyyy format: ")g = date(int(p[4:]), int(p[2:4]), int(p[:2]))t = date(int(l[4:]), int(l[2:4]), int(l[:2]))dsb = (t-g).daysprint("days since birthday:",dsb)Close

Question

1234567from datetime import datep = input("dob in ddmmyyyy format: ")l = input("today's date in ddmmyyyy format: ")g = date(int(p[4:]), int(p[2:4]), int(p[:2]))t = date(int(l[4:]), int(l[2:4]), int(l[:2]))dsb = (t-g).daysprint("days since birthday:",dsb)Close

🧐 Not the exact question you are looking for?Go ask a question

Solution

I'm sorry, but you didn't provide any text for me to respond to. Could you please provide the text?

Similar Questions

What will be the output of the code shown below if the system date is 18th June, 2017?tday=datetime.date.today()bday=datetime.date(2017,9,18)till_bday=bday-tdayprint(till_bday)

shu wants to create a program that asks users to input their birthdates, including the day, month, and year. The program should then display the entered birthdate in the format "DD/MM/YYYY."Write a program to assist Ishu in achieving this task.Input format :The input consists of three space-separated integer values, representing the user's birthdate(day, month, and year).Output format :The output displays the user's birthdate in the format "Your birthday is on " followed by the formatted date DD/MM/YYYY.

In a school a class teacher wants to estimate age of the students in years, months and days. Date of birth will be given as input by the user in the format years-months-days. write a python program to estimate age of the student in the asked format. (Example: If the input is "1997-10-12", then the output of the program should be "26 years, 1 months, 13 days " )Input Format:Years-months-daysOutput Format:total years, total months, total days

What is the output of the code shown below if the system date is: 6/19/2017?tday=datetime.date.today()tdelta=datetime.timedelta(days=10)print(tday+tdelta)

Write a JAVA program in which take date(DDMMYYYY) from user and displaynext day date(DDMMYYYY) as output.Example:Input: date=09, month=-06, year=1992Output: date=10, month=-06, year=1992Note:-1. Consider condition for leap year2. Consider number of days in month of February based on leap year ( if leapyear then February days =29, else days = 28 ) )3. Consider number of days either 30 or 31 based on month entered by user

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.