+ 2

Is it possible

The question is inside the code https://code.sololearn.com/c940UzvMyQF8/?ref=app

13th Aug 2022, 5:45 PM
Ali Kiamarsi
Ali Kiamarsi - avatar
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:]
13th Aug 2022, 6:23 PM
Jayakrishna 🇮🇳
+ 7
Ali Kiamarsi , your code as it is now is running fine, so we don't need a while loop at all.
13th Aug 2022, 6:43 PM
Lothar
Lothar - avatar
+ 4
Yes. All. .You can use replace function by mapping.. list=map(lambda x : x.replace("\n",""),list)
13th Aug 2022, 6:05 PM
Jayakrishna 🇮🇳
+ 2
The other one can we place a while loop in a for loop?
13th Aug 2022, 6:14 PM
Ali Kiamarsi
Ali Kiamarsi - avatar
+ 2
Thank you all very much❤️
14th Aug 2022, 6:59 AM
Ali Kiamarsi
Ali Kiamarsi - avatar
+ 1
Thanks
13th Aug 2022, 6:13 PM
Ali Kiamarsi
Ali Kiamarsi - avatar