Is it an while Trueaccepted method to cycle through a block of code until an accepted case is reached, as shown below? Is there a more elegant way to do this?
while True:
value = input()
if value == condition:
break
else:
pass
# Continue code here.
Thanks for any input.
source
share