79477733

Date: 2025-03-01 14:28:58
Score: 1
Natty:
Report link

Yes. Python support slice indexing. arr[start: end] remember end will be your desired end index + 1.

arr = [1, 2, 3, 4, 5]

if you want to get index from 1 to 3, then use

print(arr[1: 4])

there is a reference link. https://www.geeksforgeeks.org/python-list-slicing/

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akira