I am new to Python. While coding an error of name not defined is generated. Can anyone help me with this? : I was coding for the question--Write a Python function that takes two lists and returns True if they have at least one common member
code:
first = [a,b,c,d,e,f]
second = [a,s,d,f,g,h]
for word1 in first:
    for word2 in second:
     if word1==word2:
        print("success")
Error:
first = list[a,b,c,d,e,f]
NameError: name 'a' is not defined

Can someone please help me with different errors faced while coding in python and what should be the best approach towards it?

Thanks,

