Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. usuario = senha = ''
  2. while(usuario == senha):
  3. usuario = str(input('Digite seu usuario '))
  4. senha = str(input('Digite sua senha contendo um caractere especial como ! @ # ou $ \n'))
  5. if(senha.find('!') >= 0):
  6. print('cadastro feito com sucesso')
  7. elif (senha.find('@') >= 0 ):
  8. print('cadastro feito com sucesso')
  9. elif(senha.find('#') >= 0 ):
  10. print('cadastro feito com sucesso')
  11. elif(senha.find('$') >= 0 ):
  12. print('cadastro feito com sucesso')
  13. else:
  14. print('cadastro negado')
  15. usuario = senha = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement