Sigh... Another bug


#1

So I'm stuck on the Grand Finale with this error message Invalid Syntax. My code is exactly the same as they order but... Anyway, here's my code

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

print "%s/%s/%s %s:%s:%s:"

remove : at the end


#3

I did, but I made a mistake in the code on this.


#4

Okay, so I now realized that my code was missing a parenthesis. But when I fixed that, It said "Error. Builtin_function_or_method object has no attribute 'month.'


#5

can i please see your update code?
look
Uploading...


#6

When i use your code it works for me.

The ":" do not matters since is a string.


#7

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