You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FUNÇÃO RECEBER O INPUT E CHECAR SE O VALOR É UM NUMERO VALIDO
def inputUser():
while True:
print(Style.RESET_ALL + "Oque voce gostaria de fazer: ")
try:
choice = int(input(Fore.YELLOW + "1 - Cadastrar-se no Banco de Dados\n2 - Procurar um usuário\n3 - Listar todos os usuários existentes\n4 - Sair da aplicação\n" + Style.RESET_ALL))
print("")
return choice
except ValueError:
print("")
print(Fore.RED + "Digite um número válido!" + Style.RESET_ALL)