Returning Last Element
Start Timer
0:00:00
Given a list called int_list
, write a function called last_element
to return the last element of the list.
Example:
Input:
int_list = [0,1,2]
Output:
last_element(int_list) -> 2
Recommended questions for you
Personalized based on your user activity, skill level, and preferences.
.
.
.
.
.
.
.
.
.
Comments