Folks, Please, give me a hand with this. Say I have a vector defined as x=[1,2,3,4,...,9]. I need to write string variables with the names G1BF....G9BF. Thus, the first string variable would be 'G'+'1'+'BF', being the number 1 equal to x[0]. Now, using a for loop, I want to do something like: y[i]='G'+x[i-1]+'BF' , to create my string variables. Yes, the problem is that I am mixing numerical and string variables and Python reports an error when I try to do this. So, the question is: how do I do to convert the numerical variable x[0]=1 into a string variable '1', so I can do my 'G'+'1'+BF' thing?
Your thoughts are appreciated. By the way, 'G'+'x[0]'+'BF' reports 'Gx[0]BF' :) Regards, Andres
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor