Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Mastering Dictionary Unpacking in Python | Mastering Packing and Unpacking in Python
Intermediate Python Techniques
course content

Kursusindhold

Intermediate Python Techniques

Intermediate Python Techniques

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

book
Challenge: Mastering Dictionary Unpacking in Python

Opgave

Swipe to start coding

Simply unpack the dictionary with personal information and don't use loops for that.

  1. Use name, age, city variables to unpack the dictionary;
  2. Use values() dictionary method;
  3. Print all info.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
toggle bottom row

book
Challenge: Mastering Dictionary Unpacking in Python

Opgave

Swipe to start coding

Simply unpack the dictionary with personal information and don't use loops for that.

  1. Use name, age, city variables to unpack the dictionary;
  2. Use values() dictionary method;
  3. Print all info.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 4
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt