It seems it is not really necessary to use a variable now. Without using such a variable, it still works. Here is my code. Is there anyone who could explain why it says us to create such a variable.
from datetime import datetime print '%s:%s:%s' % (now.hour, now.minute, now.second)