File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 1- password = raw_input ('Enter the password ' )
2- special = '!@#$%^&*()?'
3- if len (password ) >= 8 and not password .islower () and not password .isupper () and not password .isalpha () and not password .isdigit () and any ((c in special ) for c in password ):
4- print 'password is strong'
5- else :
6- print 'Weak Password'
1+ def checkx ():
2+ email = raw_input ('Enter the email:' )
3+ if '@' in email and '.' in email :
4+ pass1 ()
5+ else :
6+ print ('Check you email' )
7+ checkx ()
8+
9+ def pass1 ():
10+ password = raw_input ('Enter the password ' )
11+ special = '!@#$%^&*()?'
12+ if len (password ) >= 8 and not password .islower () and not password .isupper () and not password .isalpha () and not password .isdigit () and any ((c in special ) for c in password ):
13+ print ('Strong Password' )
14+ return 1
15+ else :
16+ print ('Weak Password' )
17+ pass1 ()
18+
19+ checkx ()
You can’t perform that action at this time.
0 commit comments