total beginner here!
I want to make a function that take a list from the user, 3 objects list, and returns the list after moved it to the left so that the 1st object is now the last object etc.
I actually got stuck in the building the function part, as how to make the input of the list be part of the function.
the function should look like this:
def shift_left(my_list):
and the output should look like this:
>>> shift_left([0, 1, 2])
[1, 2, 0]
>>> shift_left(['monkey', 2.0, 1])
[2.0, 1, 'monkey']
Thank you!