Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. #!/usr/bin/pyton
  2. print (""" Digite o valor desejado pelo sistema,
  3. 1 - Cadastrar Usuario
  4. 2 - acessar sistema
  5. 3 - sair do sistema
  6. """)
  7.  
  8. def create_user():
  9.     users = {}
  10.     while True:
  11.         username = input("entre o usuario : \n")
  12.         password = input("Entre com a senha: \n")
  13.        
  14.         if input ("Continue?")[0].lower()!="y":
  15.             return users
  16.  
  17. def func1():
  18.     print "Cadastre o Nome e senha do seu usuario:\n"
  19.     create_user()
  20.  
  21. def func2():
  22.     print "Digite o Nome e senha do seu usuario:\n"
  23.  
  24. def func3():
  25.     print " Saiu do sistema"
  26.  
  27. def switch(x):
  28.     dict_func={1:func1,2:func2,3:func3}
  29.     dict_func[x]()
  30. x=input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement