Computer Science, asked by sujhithmaniani, 8 months ago

explain about list slices in python class 11 cbse​

Answers

Answered by jainamshah1595
2

Explanation:

The slice() function returns a slice object that can use used to slice strings, lists, tuple etc. The slice object is used to slice a given sequence (string, bytes, tuple, list or range) or any object which supports sequence protocol (implements __getitem__() and __len__() method).

Answered by karunaj2013
0

Answer:

humble request

follow me❤

every one favorite uv

Explanation:

In Python, a list is a kind of container that contains collection of any kind of values. ... List is a sequence like a string and a tuple except that list is mutable whereas string and tuple are immutable.

The most basic data structure in Python is the sequence. Each element of a sequence is assigned a number – its position or index. The first index is zero, the second index is one, and so forth. Python has six built -in types of sequences, but the most common ones are lists and tuples.

Similar questions