How to interact with APIs using Python
APIs allow your code to interact with other code. In this post we'll learn more about what APIs are for, and how to use them from your Python code.
APIs allow your code to interact with other code. In this post we'll learn more about what APIs are for, and how to use them from your Python code.
Python lists have a handy method called reverse, but it's not always what we want. For a start, we can't use it on other sequence types, like tuples and strings, and it also performs an in-place modification of the original sequence. Using slices we can get around these limitations, reversing
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!