1 2 3 4 5 6 7 8 9 10 |
symbols = "~`!@#$%^&*()/_-+={}[]:>;',</?*-+" contains_symbol = False for symbols in symbols: if symbols in pw1: contains_symbol = True Score + = 5 break print ( "Your password has both symbols and letters" ) |
Moderator Larz60+: Added Python tags. Please do this in the future (see help, BBCODE)