Implementing Function Overloading in Python

Python natively does not support function overloading – having multiple functions with the same name. Today we see how we can implement and add this functionality to Python by using common language constructs like decorators and dictionaries. Read more

Similar

How to Use Any() in Python

If you've ever wondered how to simplify complex conditionals by determining if at least one in a series of conditions is true, then look no further. This tutorial will teach you all about how to use any() in Python to do just that. (more…)

Read more »

Python’s for Loop Explained

Have you ever thought about how the for loop is implemented in Python? I always thought it would iterate over all elements in the sequence, like it does, but that first it would query the sequence to know its length and then request that many elements. Tu... (more…)

Read more »