Combine the Teams
Python
15 pts
Combine the Teams
Two small teams are joining for a football match in Keren. Create school_team, a new list with all the players of team_a followed by all the players of team_b. Use the + operator, so the two original lists do not change.
Print school_team and its length. Expected output:
['Selam', 'Abel', 'Hana', 'Merhawi'] 4
Checklist
- Keep
team_aandteam_bunchanged. - Create
school_teamwith the players ofteam_afollowed by the players ofteam_b. - Print
school_teamand then its length.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
