<span class="value">
like, I am doing string substitution:<br><br><br>if x = 2243:<br> string = string + "e"<br>if x = 2234:<br> string = string + "p"<br><br>and so forth.<br><br><br>how do I create this:<br><br><br>
list = [<br> (2342,p)<br> (4234,e)<br> and so forth, <br><br><br> ]<br><br><br><br>so I can use it like this:<br><br>for a in range(10):<br> If x = list[a][0]:<br> string = string + list[a][1]
<br><br><br>?</span>