fork download
  1. SpecialSymbols =['$', '@', '#', '%']
  2. Passwords = ["String #$%@", "String #1", "String"]
  3. for Password in Passwords:
  4. if any(x in SpecialSymbols for x in Password):
  5. print("strong password")
  6. else:
  7. print("no special character detected")
Success #stdin #stdout 0.02s 9044KB
stdin
Standard input is empty
stdout
strong password
strong password
no special character detected