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

Popular posts from this blog

mysql - How to unscape text from database in android studio -

php - Admin SDK -- get information about the group -

Making CSS Drop Down Menu 2 Columns -