pychallenger

pychallenger

  • Dashboard
  • Python Basics
  • Intermediate Python
  • Basic Data Analysis
  • Login
Home Intermediate Python
Unpacking

Unpacking

Python unpacking
Multiple variable assignment
* operator
ignoring values while unpacking
Argument unpacking
NEXT

Assigning Multiple Variables with Unpacking

LESSON

Exercise: Unpacking a tuple

CHALLENGE

Swap values between two variables

CHALLENGE

Exercise: Unpacking a Full Name

CHALLENGE

Exercise: Unpack a List

CHALLENGE

Exercise: Unpack a Return Value

CHALLENGE

Ignoring Values While Unpacking and the * Operator

LESSON

Remove Values from a List Using Unpacking

CHALLENGE

Removing Middle Names Using Unpacking

CHALLENGE

Exercise: Ignore a Value While Unpacking

CHALLENGE

Exercise: Capture the Rest with *

CHALLENGE

Exercise: Capture the Last Item with *

CHALLENGE

Exercise: Capture the Middle with *

CHALLENGE

Exercise: Sort and Unpack with *

CHALLENGE

Exercise: Unpack in a Loop — Write the Body

CHALLENGE

Exercise: Write the Full Unpacking Loop

CHALLENGE

Exercise: Unpack Tuples in a for-loop

CHALLENGE
Links
Blog Pricing Sign Up
Social
Twitter YouTube LinkedIn
Imprint Privacy Policy Terms
Copyright © 2026 Erik Nogueira Kückelheim