I'm making a program to check password strength. The password must have uppercase letters, lowercase letters, allowed symbols and numbers. I have been able to get the rest of the program to work(useing the re.search(r'[a-z],password structure) I shortened the problem area to these few lines but cannot get this part to work. Should I be using something different to re.search?
import re
symbols = ["!","(",")","£","^"]
password = input("password")
if re.search(r'[symbols]',password):
print("ok")
else:
print("no")