Grand Finale Broken?


#1


No matter what I try, I cannot seem to get rid of the error. I looked through other posts, and nothing seemed to help. Please help!

Replace this line with your code.


Grand finale
#2

Hi @codicorn ,

On line 4, you have this ...

10/23/16 11:34:17

That resembles the correct format of the output, but is not a Python statement, and should be removed from the code. Once that line is removed, what is currently on line 5 will produce the correct output in the console.


#3

please help, the code I used didn't through any errors but code academy seems to disagree?

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)
print 'now.month/now.day/now.year now.hour:now.minute:now.second'


#4

@poppershnoz ,

The issue is that Codecademy expects specific characters between the components of the output. This is the pertinent instruction ...

Print the date and time together in the form: mm/dd/yyyy hh:mm:ss.

Consider exactly where to place the slashes, a space, and the colons in the output format string. You might also have some parentheses that need to be removed from the string.


#5

I tried removing the parentheses and it does the same thing


#6

It's not only the parentheses. For instance, is there an extra colon in your output?


#7

ah... I see.... gosh python is so....well,...robotic.


#8

thanks for the help!


#9

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