samedi 28 août 2021

Python input and random system

I'm making an input system that asks for the user if the user selects low or high and then prints out if it's low or high with:

print(random.randint(1, 2))

But it gives this error:

  File "main.py", line 13
    print(random.randint(1, 2))
                              ^

IndentationError: unindent does not match any outer indentation level

pls debug me here's the code

import random
print("Hello Welcome to the up down game!")

while True:

  first = input("[1]Low or [2]High. Which one?\n")


 print(random.randint(1, 2))
break



Aucun commentaire:

Enregistrer un commentaire