vendredi 10 septembre 2021

RNG program won't print specific number [closed]

from random import seed 
from random import randint

seed(1)
for _ in range(100):  
    value = randint(0, 10)

if value() == 8:
    print(value)

The error message is:

if value() == 8:

TypeError: 'int' object is not callable




Aucun commentaire:

Enregistrer un commentaire