Mistakes in Unit 2 Quiz, on python date and time


#1

Hello,

I just completed the Quiz for Unit 2 in the Python course.

I think there are currently two mistakes in the Quiz.

First, the question:

What will this code print?

time = datetime.now() #2013-04-01 19:22:43
print '%s/%s/%s %s:%s:%s' % (now.day, now.month, now.year, now.hour, now.minute, now.second)

The only answer accepted is "4/1/2001 19:22:43", but the year is wrong, and also the day/month order.

Second, the question:

What will this code print?

time = datetime.now() #2014-07-08 13:08:09
print time.hour + \":\" + time.minute + \":\" + time.second

It accepts a particular time as its correct answer, but actually nothing will be printed because of the unnecessary backward slashes.

Sorry, if I posted this in the wrong place.


#2

An overnight message has been sent to the support team. This will get looked at. For now, though, this thread is closed. Will post back here when resolved.


#3