I was trying to make a for loop to sum the integers from 1 to 100 in Python and wrote the code like this :
for i in range(1, 101) :
sum_list = []
sum_list.append(i)
print(sum(sum_list))
but it didn't print the output I wanted (5050) and the VSCode python interpreter showed the message that output exceeded the size limit.
I want to know what causes this error and what I should do if I want to get the correct output.