I am trying the below program, but getting Attribute error . Can someone help me solve this issue?
import random
print(random.randrange(1, 10))
Attribute error: partially initialized module 'random' has no attribute 'randrange'(most likely due to a circular import)
randommodule with a local variable calledrandomhave you?random.py? That's what would be found byimport random, rather than the intended module.