Challenge: Updating List
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 1.64
Challenge: Updating List
Swipe to show menu
Task
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.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 3
single