-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex013.py
More file actions
27 lines (24 loc) · 736 Bytes
/
ex013.py
File metadata and controls
27 lines (24 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from os import system as cmd
from time import sleep as wait
from getpass import getpass as password
def responsividade() :
wait(3)
cmd('cls')
i = 3
senha = ''
while i != 0 :
senha_u = password(prompt='Digite sua senha para poder acessar o sistema: ')
print('Aguarde,verificando senha . . .')
responsividade()
if senha_u == senha :
print("Senha correta, bem-vindo(a) ao sistema !")
break
elif i == 0 :
print("Você atingiu o número máximo de tentativas pertimidas,tente mais tarde.")
break
else:
i -= 1
print(f"Senhra incorreta, você possui apenas mais {i} tentativas.")
responsividade()
continue
cmd('pause')