+ 1
Where is mistake?
def random(x, y): import random for i in range(1): random.randint(x, y) if x >= y: return(x) else: return(y) x = int(input("First number:")) y = int(input("Second number:")) random(x, y)
1 Odpowiedź
+ 4
Remove indentation at the last 3 lines of code.
with random.randint you generate random numbers, but they are not stored in variables.
I am not really sure what your code is intended to do.