Untitled

 avatar
unknown
plain_text
3 months ago
255 B
9
Indexable
# Example list
my_list = [    A     B     C     D     E    ]
            ^     ^     ^     ^     ^     ^
            0     1     2     3     4     5

# Slicing from index 1 to 4
sliced_list = my_list[1:4]

print(sliced_list)  # Output: [B, C, D]
Editor is loading...
Leave a Comment