Question: Write a program that extracts the last three items in the listsportsand assigns it to the variablelast. Make sure to write your code so that
Write a program that extracts the last three items in the listsportsand assigns it to the variablelast. Make sure to write your code so that it works no matter how many items are in the list.
1
sports = ['cricket', 'football', 'volleyball', 'baseball', 'softball', 'track and field', 'curling', 'ping pong', 'hockey']
2
3
4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
