In this tutorial we will be learning how we can make our Python classes both sortable AND comparable. This can be very useful if there are specific parts of your classes that you'd like to use for sorting and comparing.
▶ Become job-ready with Python:
https://www.indently.io
▶ Follow me on Instagram:
https://www.instagram.com/indentlyreels
00:00 Intro
00:19 The Issue
00:34 Starting With The Code
02:05 Using: __lt__ in Python
02:51 Solved?
03:23 Other Benefits
04:02 Using: __gt__ in Python
04:49 Using: __eq__ in Python
05:52 That’s All For Today!