0

Is there a way to replace my "cont" loop?

In order to change a string an unknown number of times, I created a for loop inside of a while loop, like this: cont = True while cont: for ... (if the string changes it exits the loop using break) (if the for loop has ended without breaking cont sets to False) Is there a nicer way of writing this?

9th Sep 2019, 5:38 PM
Amichai Etzion
1 Antwort
0
Hello, Your question is not clear. Please provide code with details.
6th May 2020, 4:16 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar