I was trying to test how the lists in python works according to a tutorial I was reading.
When I tried to use list.sort() or list.reverse(), the in
For reference, you can see the documentation here specifically says:
The sort() and reverse() methods modify the list in place for economy of space when sorting or reversing a large list. To remind you that they operate by side effect, they don’t return the sorted or reversed list.
Don't be afraid to read the manual!