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.
Define a variable named height and assign it the value of 170.
Remember to use the equals sign.
What is the data type of the value 3.5?
Consider whether the number has a decimal or not.
What is a variable?
Think about what it's like to have a labeled box for storing information.
What data type would you use for the age of a person?
Consider the types of numbers age can represent.
Write a program that takes multiple inputs (name, age, city) from a user and print a formatted message introducing the user.
Remember to use f-strings for formatted output!
Create a program that prompts for two numbers and finds their sum, difference, product, and quotient. Handle division by zero gracefully.
Use conditional statements to avoid errors when dividing.
6 more questions in this section. Enroll free to practise them all.
Enroll free