sum = 0
my_sum = sum([i*2 for i in range(2, 196)])
I have an TypeError: int object is not callable
for the code above.
What I am doing wrong?
The code before was like that:
sum = 0
for i in range(2, 196):
sum = sum + i
print(sum)
I am trying to sum up the squares of the integers instead of just the integers.