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 is a variable in Python?
Think of it as a container for data.
Provide an example of a boolean in Python.
Remember, booleans can only be True or False.
What is the data type of the variable: height = 5.7?
Think about the value of 5.7.
True or False: A list can store different types of data.
Consider what you've learned about lists.
Write a Python function that takes a list of numbers and returns a new list containing only the even numbers from the original list.
Use list comprehension to create the new list.
Create a looping structure that prints the squares of all integers from 1 to 10.
Think about how to multiply each number by itself.
7 more questions in this section. Enroll free to practise them all.
Enroll free