0

Can someone please explain string slices????

Python class 11

5th Sep 2020, 7:07 AM
HARSH VADHVANA
HARSH VADHVANA - avatar
3 Answers
+ 6
Lst = [1,2,3] List length is 3, consisting of list index's 0,1,2 Lst[0] => 1 Lst[1] => 2 Lst[2] => 3 The list slice accesses the index of Lst and returns the item emplaced at that index
5th Sep 2020, 7:15 AM
Rik Wittkopp
Rik Wittkopp - avatar
10th Mar 2022, 5:25 AM
rahul kumar
rahul kumar - avatar