I'm trying to write simple code in order to see if a string is in a list. This is the code I've gotten.
a = ["Hill, Lauren", "Smith, Jerry"]
b = "Smith"
if b in a:
print("True")
else:
print("False")
I don't understand why it prints "False". I thought it would print "True" as "Smith" is in "Smith, Jerry". Can someone explain why this happens?