What am i doing wrong?


#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 )


Replace this line with your code.


#2

Two strings instead of one.


#3

what do you mean, on different lines


#4

???


#5

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


#7

living
I don't know what im doing with my life


#8

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?


#9
'%s/%s/%s' 

'%s:%s:%s'

Should be all in one string.

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

#10

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