which of the following will return the last element of a list l with 5 elements
Answers
Answered by
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