Membership Needs A Hash
data = [1, [2, 3], "x"]
print([2, 3] in data)
lookup = {1, 2, 3}
print([2, 3] in lookup)
What does running this print, in order?
Sign in to answer questions and track your progress
Sign Indata = [1, [2, 3], "x"]
print([2, 3] in data)
lookup = {1, 2, 3}
print([2, 3] in lookup)
What does running this print, in order?
Sign in to answer questions and track your progress
Sign In