0
How do I end the while True session completely inside another one? Ex: I did it with break, but it’s only finishing it inside another (while True). look at an example below.
while True:
test = input('Digite pra ir pro proximo while True: ')
while True:
test1 = input('Digite (S) pra sair totalmente: ').upper()
if test1 == 'S':
break
yes, the break only comes out of the execution of the last while... how about instead of using a
while true
, put a condition that can come out on its own? , for example something likewhile test1 != "S"
?– Ricardo Pontual
It doesn’t seem to make much sense, it certainly should write this code differently and then this problem wouldn’t exist.
– Maniero
while True: test = input('Type to go in the next while True: ') Test1 = input('Type (S) to exit fully: '). upper() while Test1 != " S": Test1 = input('Type (S) to exit fully: '). upper() Else: break
– Jabez Dorneles
would look that way?
– Jabez Dorneles
Maniero, and what other way?
– Jabez Dorneles