+ 2
How can convert integer list to string list?
the best way....
13 Réponses
+ 4
Use list comprehension or loop through the list
+ 2
JaScript I mean
Output: ['23', '4', '567']
New idea for me
Your code is not simple
+ 1
Calvin say thanks to your mind
+ 1
Mahmoud ayman unfortunatelly no. The answer is easy as from you marked, because you have inbuild function in Python str(number) which give you a string.
Otherwise I think, there are already all solutions presented.
+ 1
Here is a simple code:
a = [1,2,3,4,5]
a = list(map(str,a))
0
Runtime Terror[ Busy ]
What does asteric do?
0
Lisa Is this the best way?
For time
0
Runtime Terror[ Busy ]
Thanks for explanation
0
How large is your list? If rime is relevant, you should test it in your code
0
intnum = [int(i) for i in input().split(' ')]
print([str(item)[i] for item in intnum for i in range(len(str(item)))])
# input: 23 4 567
#output: ['2', '3', '4', '5', '6', '7']
- 1
X=[1,2,3]
Y=[a,b]
X=Y
Print('Y')