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


Is it possible

The question is inside the code

8/13/2022 5:45:06 PM

Ali Kiamarsi

6 Answers

New Answer


#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:]


Ali Kiamarsi , your code as it is now is running fine, so we don't need a while loop at all.


Yes. All. .You can use replace function by mapping.. list=map(lambda x : x.replace("\n",""),list)


The other one can we place a while loop in a for loop?


Thank you all very much❤️