Is it possible | Sololearn: Learn to code for FREE!

+2

Is it possible

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

8/13/2022 5:45:06 PM

Ali Kiamarsi

6 Answers

New Answer

+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