A nice trick that you can use is that operation with python scalar is supported, thus you can do:
x = Variable( …)
for i in range(0,10):

         k = 0
         # k is a python number here
         for j in range(0,i):
              k = k + x
              # k becomes a Variable here automatically

      store[i] = k