As a newbie I struggled and used Q&A to understand what I was doing wrong, and I somewhat forgot to use (+) to combine the string sets. But what I can't understand is the use of the two extra % in the code? The instructions throw you off a little bit because it asks you to ensure there is only six ( % ) , below is the correct code for grand finale for date and time in one line print. My question after the first set of %s there is a lone % and another one in the end of the second set. What is that % for ?
from datetime import datetime now = datetime.now() print '%s/%s/%s ' % (now.month, now.day, now.year) + '%s:%s:%s' % (now.hour, now.minute, now.second)