Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What are the three types of primary number data types in Python?
Think about whole numbers, decimal numbers, and numbers with imaginary parts.
What does a list contain?
Consider how you can add or remove items from a list.
What is a valid data type in Python?
Think about what kinds of data types you've learned about.
True or False: Lists in Python are immutable.
Consider if you can change the contents of a list.
Create a function that accepts a list of numbers and returns True if any number is greater than 10, else False.
Think about how you can iterate through each number in the list.
Build a dictionary that counts occurrences of each character in a string. For example, in 'hello', the count should be {'h': 1, 'e': 1, 'l': 2, 'o': 1}.
Consider how you can use a dictionary to store counts as you loop through the string.
5 more questions in this section. Enroll free to practise them all.
Enroll free