mardi 2 mars 2021

Invalid syntax in a simple python document [closed]

When I try to run this code I get an error: Invalid Syntax and it is pointing towards the : in line 10. I have tried to google this for half an hour but nnothing seems to work

from random import seed
from random import randint

for _ in range (1):
    value = randint(0, 10)
    print(value)

var = int(input("insert a number between 1 and 10 ")

if var == value:
    print("CORRECT")
elif var != value:
    print("WRONG")

I hope you can fix my error. Thx in advance




Aucun commentaire:

Enregistrer un commentaire