All Sorted?

We'll cover the following...

Is everything in your life sorted out? Probably not.

Press + to interact
x = 7, 8, 9
print(sorted(x) == x)
print(sorted(x) == sorted(x))
y = reversed(x)
print(sorted(y) == sorted(y))

Explanation

  • The sorted method always returns a list, and comparing lists and
...