Created
July 29, 2023 15:57
-
-
Save paulodutra/ccf25af65001d745de0e137bc5ac05e2 to your computer and use it in GitHub Desktop.
An example using python to receive the genre of person and validate it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validacao = False | |
while (validacao is False): | |
sexo = str(input('Informe o seu sexo, sendo M - Masculino e F- Feminimo: ')) | |
if sexo == 'M' or sexo == 'm' or sexo == 'F' or sexo == 'f': | |
validacao = True | |
else: | |
validacao = False | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment