Posts by Mario Manuel Mabande • 1 point
1 post
-
-3
votes3
answers94
viewsA: String validation using while in Python
Hello, we can solve this problem by avoiding the use of break. sexo = '' while sexo not in ['f','m']: sexo = input('Digite seu sexo (m / f): ') sexo = sexo.lower() estadoCivil = '' while estadoCivil…