Jun-27-2019, 01:53 PM
(This post was last modified: Jun-27-2019, 02:04 PM by ichabod801.)
[b][i][/b][/i]
Hello, the code is the following:
if inf_user == "Pedro" or "pedro":
I wish to be possible to type in any of these options, "Pedro" and "pedro" to return True
I know that the sintax is wrong, but what could i do to achieve what i wish?
Hello, the code is the following:
# -*- coding: latin-1 -*- def login(): user_incorreto = False while not user_incorreto: user_incorreto = ver_login() senha_incorreta = False while not senha_incorreta: senha_incorreta = ver_senha() sessoes() def ver_login(): print("\nLOGIN\n") inf_user = input("\nType your user: ") if inf_user == "Pedro" or "pedro": return True else: print("\nInexistent or unallowed user.") return FalseIn def ver_login(),line 3:
if inf_user == "Pedro" or "pedro":
I wish to be possible to type in any of these options, "Pedro" and "pedro" to return True
I know that the sintax is wrong, but what could i do to achieve what i wish?