Equal Value, Different Object
a = [1, 2]
b = [1, 2]
c = a
print(a == b)
print(a is b)
print(a is c)
What does this print, top to bottom?
Sign in to answer questions and track your progress
Sign Ina = [1, 2]
b = [1, 2]
c = a
print(a == b)
print(a is b)
print(a is c)
What does this print, top to bottom?
Sign in to answer questions and track your progress
Sign In