import random
n=random.randint(1,6)
if n % 2 == 0:
n = even
else:
n = odd
def teller(even,odd):
input(even,odd)
if input = "even" and n= even:
print("you guessed the number!")
else:
print("sorri, you guessed wrong")
if n = even
print("its even")
else:
print("its odd")
print(teller)
print(n)
i have a question, it says indentation error and i am trying to make this random number guessing code, so if i guess 6 and the computer randomly says 6, it would say i guessed it correctly
Aucun commentaire:
Enregistrer un commentaire