I want to create a password program that checks to see if a special character is inside an input.
So I created a list with some special characters so that if just one or multiple symbols are detected in the input, then it should do something:
SpecialSymbols =['$', '@', '#', '%']
Password = input("type password")
if Password in SpecialSymbols:
print("strong password")
else:
print("no special character detected")
I think I need to use a for loop as well in which case it prints all items. Or I may need to check just specific characters and not the entire input, how do I do this?