Several ways to ask whether two tag lists are the same

Predict the output · Medium · §5.3 The language of true and false

The code asks in several ways whether the tag lists of two posts are the same. Predict the output without running the code.

Code

a = ["ai", "data", "ai"]
b = ["data", "ai"]
print(a == b)
print(sorted(a) == sorted(b))
print(set(a) == set(b))
print(len(a) != len(b))

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.