Confused About Getting the Current Date and Time Exercise


I'm stuck with this.

This is the error message.
Traceback (most recent call last):
File "python", line 2, in
TypeError: can't set attributes of built-in/extension type 'datetime.datetime'

from datetime import datetime "05 01 2017"
now =

print str(
print now

I'm really stuck on this error. Can anyone give me an additional clue?


i think in the information is a pretty good hint:

from datetime import datetime


now() is a method, use it as such. It will fetch the current date and time, no need to type that in manual


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