A quick exercise today, but we can discuss further on the forum, too.
Experiment with the following built-in Python functions and explore calling them with positional and keyword arguments.
Here’s your task. For each of these functions, try to find all the valid combinations of positional and keyword arguments. Which combinations are possible and which ones aren’t?
You can find each function’s signature in the documentation or by using the help()
function, such as help(round)
.
Note, part of this exercise deals with a topic we’ll discuss in this week’s live lesson. So don’t worry if you spot some symbols you’re not familiar with in these functions’ signatures.