I want to make a sum that is equal or smaller than 10. For that, I want to create a list and then sum all itens in that list. Here is my code:
n =  s = 0 for i in range(len(n)): for s <= 10: n[i] = raw_input("Number: ") s += n[i] print s
However, I keep getting this error:
Oops, try again. Your code looks a bit off. Check out the examples in the previous exercises if you need help! Your code threw the following error: invalid syntax (python, line 4)
Apparently, there is a syntax error with
for s <= 10 but I don't see that. For me it's the way it should be.