I want to define numbers with "indices", and then refer to them using a running index, for example
a1=4
a2=3
a3=17
sum=0
for k in range(1,4):
sum+=ak
print(sum)
This doesn't work, apparently I need to express ak
in another way. How can I do that?
Thank you in advance :)