04 Aug Saturday 16:30 Python Practice – 22.07.30.
Question 1:
We have a list of following:
zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears']
A. how to retrieve a slice of list zoo, so you can get the following result?
['bears', 'penguins', 'monkeys']
B. how to retrieve a slice of list zoo by using the default value, so you can reversed list?
C. how to retrieve a slice of list zoo by using the default value, so you can get the last 4 items?
Sorry, the comment form is closed at this time.