Post

Python Developer
Python Developer@PythonDvz·
Indexing and slicing in Python allow you to access specific elements or ranges within a list or string. Indexing uses positions, while slicing extracts subsets using start, stop, and step values.
Python Developer tweet media
English
13
17
136
7K
Beautylives
Beautylives@Beautylivess·
@Python_Dv A ['apple', 'banana'] because when you use the indexing you always start at zero, so apple is zero, banana is one, cherry is two, etc. However: in Python the last number is what it goes to but stops at, so the :3 stops at banana.
English
0
0
0
27
M&M
M&M@Mike46508579·
@Python_Dv Array starts at 0 so it would print value 0,1 and 2. So the answer is C
English
0
0
0
32
Paylaş