generate a list of variables with two indices [closed]
Hi
I would like to make a list of variables with two consecutive indices, example rr_10, rr_21 .. etc I tried :
n=3
rrL=list(var('rr_%d%d' %i %(i-1)) for i in [1..n])
without success:not enough arguments for format string what is the missing arguments here ?
Oops ok , I find a way Sorry, Im gonna close the subject !
thank you nbruin, finally it was a true question !, i'm gonna reopen it and mark your comment as answer.
but it is not possible for me to transform your comment in good answer !
I turned @nbruin's comment into an answer so you can accept it and mark the question as solved.