Exercise: Positional and Keyword Arguments

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.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

You must own this product to join the conversation.