Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does len() do?
Think about counting items in a box.
How can you check if 'banana' is in a list called fruits?
Look for it as you would search for a fruit in a basket.
What does len([1, 2, 3]) return?
Think about how many items are present.
Concatenating [1, 2] and [3, 4] produces which of the following?
Picture combining two groups of numbers.
Create a list of 10 integers, concatenate it with another list of 5 integers, and return the total length.
Think about how two collections combine!
Write a program that checks if certain fruits are in a list and prints the result.
How can you keep checking each fruit one by one?
5 more questions in this section. Enroll free to practise them all.
Enroll free