<div> </div>
<div>I want to get a variable name dependent on another variable. I have tried,</div>
<div> </div>
<div>'fs' + str(int(round(unblockedFS))) for fs13</div>
<div> </div>
<div>and I get an invalid literal. If I code in the fs13, everything works. Is it possible to do this?</div>
<div> </div>
<div> </div>
<div> </div>
<div>unblockedFS=13.4</div>
<div> </div>
<div>for line in file('21Ex6MV_tmr.dat'):<br> d, fs1, fs2, fs3, fs4, fs5, fs6, fs7, fs8, fs9, fs10, fs11, fs12, fs13, fs14, fs15, fs16, fs17, fs18 = line.split()<br> if float(d) == round(calc_depth):<br> b = float(
<font color="#cc9933">fs13</font>)<br> print float(<font color="#cc9933">fs13</font>)<br> </div>
<div>Thanks,</div>
<div>Bryan</div>