Error when using import randint in python -
file "ex43.py", line 2, in random import randint importerror: cannot import name randint
any suggestions randint error? tried reinstalling python, no luck.
check random.py or random.pyc file(which override python random) in current folder ex43.py resides.if there, delete or rename files.also check import by
>>>import random >>>print(random.__file__) check importing packages
Comments
Post a Comment