Challenge: Updating List
Uppgift
Swipe to start coding
You are given three lists containing student names: junior_school_students, middle_school_students, and high_school_students.
- Concatenate the first and second lists and store the result in the variable
junior_middle. - Append the
high_school_studentslist to the resulting list and store the result in the variableall_students. - You can use both list concatenation and the
extendmethod to solve this task.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 3
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.67
Challenge: Updating List
Svep för att visa menyn
Uppgift
Swipe to start coding
You are given three lists containing student names: junior_school_students, middle_school_students, and high_school_students.
- Concatenate the first and second lists and store the result in the variable
junior_middle. - Append the
high_school_studentslist to the resulting list and store the result in the variableall_students. - You can use both list concatenation and the
extendmethod to solve this task.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 3
single