JJoeven

Exercises / python

Take the last three steps

last3(steps) returns the last three items of a list using a slice. If the list is shorter, return all of it. Print both cases.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.