I have no clue what I'm doing wrong here. Grand Finale


#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)
This is my current situaition


#3

Oh what's wrong is in line two. It should say
now = datetime.now()
Don't forget your parenthesis!
Hope this helps.


#4

It was just the parenthesis thank you


#5

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

It says your printed time and date format isn't correct. What am I doing wrong? Please help!


#7

I tried it like that but still nothing. This time it says : your code seems a bit off. I don't inderstand ! :frowning:


#8

I'm having the same problem?


#9

Fixed it!

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)

That did it for me, hope it helps you.


#10

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