+ 2

How can convert integer list to string list?

the best way....

11th Sep 2021, 7:05 PM
Mahmoud ayman
Mahmoud ayman - avatar
13 Respuestas
+ 4
Use list comprehension or loop through the list
11th Sep 2021, 7:08 PM
Lisa
Lisa - avatar
+ 2
JaScript I mean Output: ['23', '4', '567'] New idea for me Your code is not simple
11th Sep 2021, 9:34 PM
Mahmoud ayman
Mahmoud ayman - avatar
+ 1
Calvin say thanks to your mind
11th Sep 2021, 9:35 PM
Mahmoud ayman
Mahmoud ayman - avatar
+ 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.
12th Sep 2021, 9:30 AM
JaScript
JaScript - avatar
+ 1
Here is a simple code: a = [1,2,3,4,5] a = list(map(str,a))
13th Sep 2021, 6:53 AM
Gajendra Sonare
Gajendra Sonare - avatar
0
Runtime Terror[ Busy ] What does asteric do?
11th Sep 2021, 7:13 PM
Mahmoud ayman
Mahmoud ayman - avatar
0
Lisa Is this the best way? For time
11th Sep 2021, 7:16 PM
Mahmoud ayman
Mahmoud ayman - avatar
0
Runtime Terror[ Busy ] Thanks for explanation
11th Sep 2021, 7:22 PM
Mahmoud ayman
Mahmoud ayman - avatar
0
How large is your list? If rime is relevant, you should test it in your code
11th Sep 2021, 7:23 PM
Lisa
Lisa - avatar
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']
11th Sep 2021, 8:07 PM
JaScript
JaScript - avatar
- 1
X=[1,2,3] Y=[a,b] X=Y Print('Y')
13th Sep 2021, 9:18 AM
145 Eimam sharif shaik