8. What are list slices ? What for can you use them ?
Answers
Answered by
21
List slicing refers to accessing a specific portion or a subset of the list for some operation while the orginal list remains unaffected. ... The stop represents the last index up to which the list slicing will go on. Its default value is (length(list)-1) or the index of last element in the list.
Answered by
8
Explanation:
List slicing refers to accessing a specific portion or a subset of the list for some operation while the orginal list remains unaffected. ... The stop represents the last index up to which the list slicing will go on. Its default value is (length(list)-1) or the index of last element in the list.
Similar questions