vendredi 26 février 2021

Why we get error from choice attribute but i don't use choice

Why we get error from choice attribute but I don't use choice !! This is my python code:

from random import randint
User , Computer = 0 , randint(0,11)
# check process
while Computer != User :
   User = int(input('Enter Your number :'))
   print('Very good')

Error : in print(random.choice(a))
AttributeError: partially initialized module 'random' has no attribute 'choice' (most likely due to a circular import) i dont know why i take this error sorry i am Beginner thanks




Aucun commentaire:

Enregistrer un commentaire