0
Heeeelp! Why is my code for Python not working in Sololearn, but it works in different compiler on PC?
N = int(input()) x = list(range(1,N+1) y = 0 for i in x[0:100:1]: y = i + y if i == 100: break print(y) >>Invalid syntax line 3
2 odpowiedzi
+ 4
Add closing bracket after range(1, N+ 1)
+ 2
Thank you 🙃