In python, I want to sum all of the values in a variable.
My code is
x=100
y=200
for i in range(a,b):
if i%2==1:
print(i)
When I try to print i value, the output is displaying numbers from 100 to 200. But I wanted the sum of all numbers which is 7500.