Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/pyton
- print (""" Digite o valor desejado pelo sistema,
- 1 - Cadastrar Usuario
- 2 - acessar sistema
- 3 - sair do sistema
- """)
- def create_user():
- users = {}
- while True:
- username = input("entre o usuario : \n")
- password = input("Entre com a senha: \n")
- if input ("Continue?")[0].lower()!="y":
- return users
- def func1():
- print "Cadastre o Nome e senha do seu usuario:\n"
- create_user()
- def func2():
- print "Digite o Nome e senha do seu usuario:\n"
- def func3():
- print " Saiu do sistema"
- def switch(x):
- dict_func={1:func1,2:func2,3:func3}
- dict_func[x]()
- x=input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement