lundi 26 juillet 2021

Attribute Error while using random module

I am trying the below program, but getting Attribute error . Can someone help me if have any idea on 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)




Aucun commentaire:

Enregistrer un commentaire