I am new to the world of programming and ran into this syntax error when i ran the code it gives me a syntax error and highlights the word element in red.Please help
given_list = [5,4,4,3,1,-2,-2,-5]
total = 0
for given element in given_list:
if element <= 0:
break
total += element
print total
I have no previous work experience so please help me.I think the error is because of some extra space or so but i have no idea.