0

while True /

Can someone explain the answer because I don't understand correct option while True: choise = input() if choise != "stop": continue break Or while True: choise = input() if choise != "stop": break continue ????

20th Sep 2023, 1:11 PM
Yuliia Movchan
Yuliia Movchan - avatar
2 ответов
+ 2
Julia In the first case, if choise is not equal to 'Stop', the 'continue' operator will return the loop to the beginning. And break will be triggered in case choise = 'Stop'. In the second case, an interrupt occurs if choise is not equal to 'Stop' and in this case 'continue' is not needed
20th Sep 2023, 2:48 PM
Alexey Kopyshev
Alexey Kopyshev - avatar
+ 4
What was the question? Remember to tag the relevant programming language.
20th Sep 2023, 1:33 PM
Lisa
Lisa - avatar