Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: The Champions League | Packing and Unpacking
Intermediate Python Techniques
course content

Course Content

Intermediate Python Techniques

Intermediate Python Techniques

1. Packing and Unpacking
2. Arguments in Function
3. Function as an Argument
4. Variable Scope
5. Decorators

book
Challenge: The Champions League

Task
test

Swipe to show code editor

Imagine we have a table with the final results of the qualification round for the Champions League. Let's store the teams with first and second place in the team_a and team_b. The third team save in the team_c variable. Save the team with the fewest points in the last team_d variable. We will use these variables to print the announcements.

Please don't change the print statements and the function.

Your task is simply to unpack the list group_c within the function call parameters.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 5
toggle bottom row

book
Challenge: The Champions League

Task
test

Swipe to show code editor

Imagine we have a table with the final results of the qualification round for the Champions League. Let's store the teams with first and second place in the team_a and team_b. The third team save in the team_c variable. Save the team with the fewest points in the last team_d variable. We will use these variables to print the announcements.

Please don't change the print statements and the function.

Your task is simply to unpack the list group_c within the function call parameters.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt