What am i doing wrong?


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 )

Replace this line with your code.


Two strings instead of one.


what do you mean, on different lines




2 strings??????????.


I don't know what im doing with my life


First of all, please format your code properly, so it looks better in your post (the guide to it can be found here).

Second thing, did you check your code for appropriate use of space-key (as in, too much or too little spaces)?

Third thing is, what exactly is the problem? Did you receive an error message? If yes, what does it say?



Should be all in one string.

'%s/%s/%s %s:%s:%s'


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