Challenge: Updating List
Oppgave
Swipe to start coding
You have two lists on hand: people
and new_people
, both of which contain names. Here's what you need to do:
- Merge the
people
list with thenew_people
list. Store the merged list in a variable calledpeople_upd
and display it. - Update the
people
list by adding the names fromnew_people
using a list method.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 3
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
Awesome!
Completion rate improved to 1.64
Challenge: Updating List
Sveip for å vise menyen
Oppgave
Swipe to start coding
You have two lists on hand: people
and new_people
, both of which contain names. Here's what you need to do:
- Merge the
people
list with thenew_people
list. Store the merged list in a variable calledpeople_upd
and display it. - Update the
people
list by adding the names fromnew_people
using a list method.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 1.64Seksjon 4. Kapittel 3
single