Computer Science, asked by shahankhanapsr558, 4 months ago

which of the following will return the last element of a list l with 5 elements​

Answers

Answered by anupyamohanty27
0

Any element in list can be accessed using zero based index. If index is a negative number, count of index starts from end. As we want last element in list, use -1 as index.

Similar questions