I have a doubt in while loop that suppose i want to do one looping process to assign values, how I have to do.
Having one list like L1 =
need to do pop operation and assign value like,
z1 = L1.pop()
z2 = L2.pop()
z3 = L3.pop()
similarly upto length of the list. Please give a solution.
A properly constructed while loop can do the same.
Even a language with just if and goto constructs can do the same. However it is a matter of clarity and convenience if we have stopped using those 40 years ago.
None of the proposed solutions is as clear or elegant as what it could be if simply they added the do keywoard to Python.
Please reject the PEP. More variations along these lines won't make the language more elegant or easier to learn. They'd just save a few hasty folks some typing while making others who have to read/maintain their code wonder what it means.
I support the while True ... break construct. It is even more general than the do ... while.
Apart from that, this is a veeeeeeeeeeeery old thread. Don't resurrect old threads, start your own !