Unit 3 Task 10: Reading list slices

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 3 Task 10 - Reading list slices

← Unit 3 tasks - Solution


Given a list of at least six integers in your code (e.g. chapter IDs), print:

Skills: slicing [start:end], [ :3], [-2:].

Example list: [10, 20, 30, 40, 50, 60]