Grand final 6/6


#1

What am I doing wrong?


#2

check line 4 again. Are you missing something ?


#3

have checked it! do you see anything?


#4

in your parameter list, passing values to print (line4)
Part of the problem with codecademy's interface is that you are unable to use an actual python interpreter to test simpler code and examine where your mistake is.
If for example, you were using linux, you'd be able to try out that print statement and see that you are passing a couple of parameters that have an incorrect separator.
I'd really like you to think about it. It's staring you in the face.


#6

On line 5 or if you skip a line line 6 put:
print now

worked for me.


#7

i have the same exact same problem and i have been looking at for hours but i still can find where i went wrong!


#8

Are you sure your code window looks exactly the same as the original picture that markustornkvist has shown ?
Because there is a comma missing in the parameter list


#9

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

this is what i put


#10

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


#11

what was the difference?


#12

%s/%s/%s after this you had an extra /


#13

you're missing a comma after "year". So it should look something like this:

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


#14

There =]

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)


#15

@markustornkvist ,

You have:

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

A comma is missing after now.year. You should have:

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

#16

It worked for me.. Thanks mate ..


#17

Thanks fam, it worked


#18

Don't use spacing between % and (now.month, now.day, now.year, now.hour, now.minute, now.second) also you're missing a comma after "year".
My code looked like:
print '%s/%s/%s %s:%s:%s' %(now.month, now.day, now.year, now.hour, now.minute, now.second)
and worked for me.


#19

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)


#20

When you put the %s/%s/%s/ the last slash isint needed.


#21

You forgot the comma between now.your and now.hour. I hope that helps.