logo


args kwargs


<p>Functions in python require arguments and you can be rather expressive with them. You can have functions that accept any number of arguments and there's many nice use-cases to be able to pass around keyword arguments. In this series of videos we'll explore how to use arguments (<strong>args</strong>) as well as keyword arguments (<strong>kwargs</strong>).</p>


1 - Introduction
2 - Numbers
3 - Args
4 - Kwargs
5 - Error
6 - Unpacking
7 - Usecase

The goal will be to have a function that can handle both usecases.

def multiply(a, b):
    return a * b

def multiply(a, b, c):
    return a * b * c