import datetime
current_datetime_demo = datetime.datetime.today()
print(current_datetime_demo)
I am using pycharm to run this and it keeps throwing this error when i try to print date and time
import datetime
current_datetime_demo = datetime.datetime.today()
print(current_datetime_demo)
I am using pycharm to run this and it keeps throwing this error when i try to print date and time
if you already imported datetime library you should do
current_datetime_demo = datetime.today()