Dec-29-2017, 09:00 PM
Quote:run="true" while run=="true": a=input(line) line=line+1 if a=="//end": run="false"
Why is
run
a string? There's a boolean type that's perfect for this:run = True while run: # do something if #some condition : run = False