Apr-05-2017, 09:48 AM
(Apr-05-2017, 09:41 AM)MeMeBigBoy Wrote: I am a student and I am currently working on a password scoring program, I need to find a way to identify whether the password entered (the string) contains symbols such as: !, £, $, %, ^, &, * etc.
Any help would be greatly appreciated. Thank you.
symbols = "~`!@#$%^&*()/_-+={}[]:>;',</?*-+"
contains_symbol = False
for symbols in symbols:
if symbols in pw1:
contains_symbol = True
Score+=10
break
print(contains_symbol)