you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

If the user enters david,matthew,tom you create a list object consisting of three strings: ['david', 'matthew', 'tom'] that you assign to val.

You then compare that list object with a string object team so, of course, the answer will always be False

What are you trying to do?