Date Time


I had tried the code in the IDLE but it is showing some error like this
Error >> ImportError: cannot import name 'datetime’
Here’s the screenshot of the error


you named your script, which means it will look in the script you are currently writing. Not the default which ships with python.

if we do:

from math import randint

it will look for We do not specify the .py at import, but its the file name.


Ya thanks man it worked!!


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