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
peoplelist with thenew_peoplelist. Store the merged list in a variable calledpeople_updand display it. - Update the
peoplelist by adding the names fromnew_peopleusing 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
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
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
peoplelist with thenew_peoplelist. Store the merged list in a variable calledpeople_updand display it. - Update the
peoplelist by adding the names fromnew_peopleusing a list method.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 3
single