0
isnt there any way to apply the for loop on each item of the list WHILE KEEPING THEM IN THE SAME LIST. ?
4 Antworten
+ 1
need more details about what exactly you're trying to do
0
suppose a list(range(5)) . i want to multiply each by 2. but they should remain in list form. like [0,2,4,6,8]. shall be grateful.
0
aaaaAas
0
print(list("".join([str(x*2) for x in range(5)])))