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

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

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -