I am trying to take my shot at building a super simple score counter in Python, the language I am teaching myself. The counter should only go to 200 and not over. I am stuck at my second loop and I am getting an invalid syntax error in line 13 at the second condition "> 200".
I haven't finished the code yet, because I am testing each block as I go. Can I receive help as to why I am getting the error? Also I am sure this is messy code, but I am just now learning about functions and paremeters, and conditions, so this is so far what I know. The entire code is as follows:
global score #creating starting score
score = 0 # set to 0
global high_score # highest score attainable
high_score = 200 # set to 200
global new_score # name to get current score
new_score = score + int(input("score: ")) # how current score is reached
def total(): # function to find the complete score
while score(): # loop for score at zero to add points
if score is 0:
print(new_score) #asks user for first score
break
while score(): # loop to keep adding numbers
if new_score < 0 and > 200:
print("next score: ", + score)
break