Apr-05-2017, 09:48 AM
(Apr-05-2017, 09:41 AM)Ollie Wrote: I am a student working on a password checking program, I need help with identifiying if a variable has symbols ("~`!@#$%^&*()_-+={}[]:>;',</?*-+") and add a score to the variable (Score).symbols = "~`!@#$%^&*()/_-+={}[]:>;',</?*-+"
contains_symbol = False
for symbols in symbols:
if symbols in pw1:
contains_symbol = True
Score+=10
break
print(contains_symbol)