Need help with date and time ex2. Err message is coming that my variable needs to be printed
from datetime import datetime
now = datetime.now()
print '%s/%s/%s' % (now.month, now.day, now.year)
print '%s:%s:%s' % (now.hour, now.minute, now.second)
The message is, you have forgotten to print the variable now
The programs should run and this message should not come
Replace this line with your code.