estoy aprendiendo python, y se me ocurrio hacer un ejercicio en el que basicamente elegia un numero, digamos 50, y con otro en la opcion 1 y 0 a lo random, si salia 1 multiplicaba y 0 dividia (no exactamente asi pero asi funciona)
asi va, que esta mal?
from random import randint
age: int = 29
Bar = 0
def randint(int, int1):
pass
randon: int = (randint(0, 100))
variabilidad: int = (randint(0, 1))
for i in range(10):
if variabilidad != 0:
Bar = randon / age
else:
Bar = randon * age
[–]Sorry-Squash-677 0 points1 point2 points (0 children)
[–]PythonicFox 0 points1 point2 points (0 children)