i have a list of items and want them to print in order, depending on the number requested from a spinbox, how would i go about this?

example:

```
list = ['cat', 'dog', 'bird', 'cow', 'snake']

```

if spinbox = 2
show cat, dog

(i'm new to python so i have the code for the list and spinbox but have no idea how to write a function that will work for this)