Date and Time Grand Finale Error


#1

I did
print '%s/%s/%s %s:%s:%' % (now.month, now.day, now.year now.hour, now.minute, now.second)
and still got it wrong.


What is wrong with my code?
#2

One error:

Missing s on last placeholder.


#3

@kenna2003 ,

Check the syntax carefully. There are six values to be output. Therefore, you need six %s format specifiers, as well as a sufficient number of commas, correctly placed to delimit the six output expressions that are within the parentheses.


#4

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