Creating a New Sequence Type in Python - Part 2
In this post we continue our journey to master Python's dunder methods by creating a new sequence type from scratch.
In this post we continue our journey to master Python's dunder methods by creating a new sequence type from scratch.
Get familiar with the different uses for else in Python. It's not just for if statements: we can use it with loops, and for error handling too!
Learn to exploit the power of Python's magic methods by creating a new sequence type from scratch!
In this post we take a deeper dive into Python slices, and pull back the curtain on the magic methods behind the slice notation we covered in earlier posts.
Slices are amazing whenever you want to use a piece of a larger sequence. Learn the basics of slicing in Python and add a powerful tool to your repertoire.