Trouble with Date and Time Exercise :(


#1



from datetime import datetime
now = datetime.now()

print'%s/ %s/ %s %s: %s: %s'% (now.month, now.day, now.year, now.hour, now.minute, now.second)


#2

What error message are you getting? I think you need to get rid of the spaces:

here

and here


#3

ok I will try that

Thank you
:slight_smile:


#4

It worked yay

Thanks again for helping
:smile:


#5

No problem, glad to help! :slight_smile:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.