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.
Declare a variable named pet and assign it your favorite animal.
Think about your favorite animal.
Create an integer variable num with the value 10.
Use a whole number.
What is the purpose of a variable?
Think about how we define them!
True or False: Python variable names must start with a number.
Recall the rules for naming variables.
Create a mini program that collects your favorite dish, its price, and if it's spicy, then prints this information with types.
Make sure to define the appropriate types for each variable.
Using a variable named balance, start with an integer value, convert it to a float and print the type before and after.
Don’t forget to print the type at each step!
6 more questions in this section. Enroll free to practise them all.
Enroll free