I get this error:
AttributeError: partially initialized module 'datetime' has no attribute 'datetime' (most likely due to a circular import)
Code:
import datetime as dt
now = dt.datetime.now()
print(now)
I get this error:
AttributeError: partially initialized module 'datetime' has no attribute 'datetime' (most likely due to a circular import)
Code:
import datetime as dt
now = dt.datetime.now()
print(now)
Look at the error carefully you have a file named datetime.py in your parent directory (32_automated_email).
Change the name and it will work fine. Don't name a file same as a python module.