How can I fix AttributeError: 'str' object has no attribute 'read' error in my python3 script.
user = input("Enter your word : ")
script = open('wordlist.txt', "r")
for s in script:
content = s.read()
if user in content:
print("Match")
else:
print("Not match")