Remove First Item
Beginner
Hey young coder! Let's play with lists in Python. Imagine you have a bucket full of colorful balls. Every time you want to play, you need to take out the first ball in the bucket before you start.
Your task is to write a function named remove_first_item that does exactly this for any list you have. It removes the first item from a list and gives you the rest of the list, just like you're removing the first ball to see the rest.
For instance:
remove_first_item([1, 2, 3, 4, 5])
Would return:
[2, 3, 4, 5]
And if the list is empty, like this:
remove_first_item([])
It would return:
[]
Let's have fun writing this function and learn how to manage lists with ease!
Inputs
Arg 1:
[1,2,3,4,5]Expected Output
[2, 3, 4, 5]Actual Output