while (/*condition include a*/):
//for some reason has to create a in the process.
Recently I encountered a python program which has to be built that way. Finally I switched the method and avoid the problem. But it got me thinking what if we need a while statement but the condition of that statement is in the excution process of the statement. And it will give an error when we run it like a is not defined. So what can we do to make that work. I know it's a easy problem, I am a beginner so please help me if you want to, thank you!