I am comparing two lists and I am getting this error SyntaxError: can't assign to function call
python
if all(value.lower() in mp3meta for value.lower() in search_key):
#do stuff
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is a pretty clear error message
value.lower() is a function call not a variable hence it cant be assigned a value in the loop.
Try this :
This is not the best way to do this. Python usually leads to pretty clean code.