Challenge: Updating List
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 4. Kapitel 3
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 1.64
Challenge: Updating List
Stryg for at vise menuen
Opgave
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
Var alt klart?
Tak for dine kommentarer!
Sektion 4. Kapitel 3
single