Jan-20-2019, 12:40 PM
#Game #Import module import random #Start randomgenerator random.seed() #Random values and calculation a= random.randint(1,10) b= random.randint(1,10) c= a+b print("The exercise:",a,"+",b) #Loop with [for] for i in 1,2,3,4: #Input print("Input number:") x=input() number= int(x) #Branch if number == c: print(number,"is correct") #Break of Loop break else: print(number, "is wrong") #End print("Answer:",c)when i try to run it, it says the 'break' is out of the loop. when imove it it says elif is a Syntax error. Need help