Untitled
unknown
plain_text
9 months ago
255 B
10
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