Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What function would you use to find the number of elements in a list?
Think about how you measure length.
If my_list = [3, 5, 1], what is min(my_list)?
What is the smallest number here?
What does sum([1, 2, 3]) return?
What do you get when you add these numbers together?
Does max([9, 4, 7]) return 4?
Find the highest value in the list.
Given the list data = [8, 3, 9, 1, 4], how would you find the second largest number?
What happens to the order when you sort the list?
You have a list of temperatures measured throughout the week. How would you find the average temperature?
How do you calculate an average?
5 more questions in this section. Enroll free to practise them all.
Enroll free