+ 2
Is it possible
The question is inside the code https://code.sololearn.com/c940UzvMyQF8/?ref=app
6 ответов
+ 2
#why not? this print all characters by while loop inside for loop
for i in list :
while len(i) :
print(i[0])
i = i[1:]
+ 7
Ali Kiamarsi ,
your code as it is now is running fine, so we don't need a while loop at all.
+ 4
Yes. All. .You can use replace function by mapping..
list=map(lambda x : x.replace("\n",""),list)
+ 2
The other one can we place a while loop in a for loop?
+ 2
Thank you all very much❤️
+ 1
Thanks