Coding task · Python course · Module 2: Data Structures

List Slicing

Slice a portion of a list

Task

Slice the first 3 elements of the list route = ['Start', 'A', 'B', 'C', 'D', 'Finish'] (slicing [:3]), store them in the variable first_three and print it