TORONTO KIDS COMPUTER CLUB | Saturday 16:30 Python Practice – 22.07.30.
20907
post-template-default,single,single-post,postid-20907,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Saturday 16:30 Python Practice – 22.07.30.

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?


No Comments

Sorry, the comment form is closed at this time.