Write a program that extracts the last three items in the list sports and assigns it to the variable last. Make sure to write your code so that it works no matter how many items are in the list.
Answers
Answered by
11
Explanation:
note thate list[-1] will return the last element in the list; list[-2] will return the 2nd element and so on
Similar questions