#shorts
List slicing in Python
my_list = ['p','r','o','g','r','a','m','o','n']
items from index 2 to index 4
print(my_list[2:5])
items from index 5 to end
print(my_list[5:])
items beginning to end
print(my_list[:])
Watch video Python Interview Series | Slicing online without registration, duration hours minute second in high quality. This video was added by user nETSETOS 16 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 221 once and liked it 11 people.