03 Mar Aurora Monday 18:30 Python Homework 21.03.01.
Question 1:
We have a list of following:
zoo = ['monkeys', 'tigers', 'pandas', 'penguins', 'giraffes', 'hippos', 'bears']
how to retrieve a slice of list zoo, so you can get the following result?
['monkeys', 'pandas', 'giraffes', 'bears']
Question 2:
from the same list of zoo in the question 1, how to retrieve a slice of list zoo, so you can get the following result?
['penguins', 'bears']
Question 3:
- Create a list called “attributes” , it contains “HP”, “Attack”, “Defense”, “Special Attack”, “Special Defense”, “Speed”
- Modify the list above, replace “Special Attack” and “Special Defense” with “Magic” and “Stamina”
- Add “Special skills” in the end of the list
- Delete “Speed” from the list.
- Insert “Special Attack” and “Special Defense” just before “Special skills”
Sorry, the comment form is closed at this time.