Apr-05-2017, 10:42 AM
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")This code works but it breaks if you only do symbols, it should only be True when both letters and symbols are prestent.
Moderator Larz60+: Added Python tags. Please do this in the future (see help, BBCODE)