I am trying to write a talk bot program in python. I'm trying to display how old they are in years, and how long untill they will be the next year older. like if 18 and 12 months 30 days old like..
timetillnext=(dont know what goes here)
bday=raw_input("What day were you born?: ")
bmonth=raw_input("And the month?: ")
byear=raw_input("And what about the year?: ")
if byear <= "1990":
if bmonth <="May"
print ("Wow your already")+byear
print("And only %time in years, months, and days% untill you are %next year older%")
How do I make the program know the current time, so it can give a
print("wow you have only" %yearstill%, %monthstill%, %daystill% "till you are" %currentage%+1)
You can use the datetime module in Python e.g.
now = datetime.datetime.now()
print print "Current date and time using str method of datetime object:" print str(now)
Once you reach college or university, the level of writing that is expected from you should be quite high. They…
APPROVED BY CLIENTS
The services I have receive were remarkable. Everything was finished before the deadline and superseded my expectations as a first time user. I was honestly really nervous at first but now that I can trust Assignment Expert, I will definitely be utilizing it more and recommending friends as well! YOU ROCK