Grand Finale


#1

rom datetime import datetime
now = datetime.now()

print '%s/%s/%s %s:%s:%s' % (now.month,now.date,now.year,now.hour, now.minute,now.second)


I am getting the error like this

7//2016 5:23:13


#2

correct first line :
from datetime import datetime


#3

@hari7

You forgot the f in from.


#4

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