like, I am doing string substitution:
if x = 2243:
string = string + "e"
if x = 2234:
string = string + "p"
and so forth.
how do I create this:
list = [
(2342,p)
(4234,e)
and so forth,
]
so I can use it like this:
for a in range(10):
If x = list[a][0]:
string = string + list[a][1]
?
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
