mardi 22 mars 2022

Why do i get a type error when using Python random number generator and trying to do <= [closed]

This is my code

from random import seed
from random import random

seed(9382)
i=random
if i>=8:
    print(random())
else:
   print("€###€&€#€€€€§§&%€bel=ö")`

I don’t understand why it doesn’t work

I tried using random but I always get

TypeError:
"\>=" not supported between instances
of 'builtin_function_or \_method' and
int



Aucun commentaire:

Enregistrer un commentaire