Challenge: Mastering Dictionary Unpacking in Python
Oppgave
Swipe to start coding
Simply unpack the dictionary with personal information and don't use loops for that.
- Use
name, age, cityvariables to unpack the dictionary; - Use
values()dictionary method; - Print all info.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 3.7
Challenge: Mastering Dictionary Unpacking in Python
Sveip for å vise menyen
Oppgave
Swipe to start coding
Simply unpack the dictionary with personal information and don't use loops for that.
- Use
name, age, cityvariables to unpack the dictionary; - Use
values()dictionary method; - Print all info.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single