How to convert a list [0,1,2,1] to a list of string, when we convert 0 to 'abc', 1 to 'f' and 2 to 'z'? So the output list will be ['abc','f','z','f'].
I did:
x = []
for i in xrange(input):
if input[i] == ...
x.append ('abc')
How to convert a list [0,1,2,1] to a list of string, when we convert 0 to 'abc', 1 to 'f' and 2 to 'z'? So the output list will be ['abc','f','z','f'].
I did:
x = []
for i in xrange(input):
if input[i] == ...
x.append ('abc')