1/7
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
What is a variable?
A variable is a named place in memory that stores a value.
Q2. What is a data type?
A: A data type describes what kind of data a value is (e.g., number, text, True/False).
Q3. Name three common data types.
integer, string, Boolean and float
Q4. What does int mean in Python?
Int stands for integer, which represents whole numbers (positive, negative, or zero) in Python.
Q8. What does elif mean?
A: elif means else if — another condition to check.
Q9. What data type stores True/False?
A: bool (boolean).
Q10. What is a syntax error?
A: When the code breaks the rules of the language (e.g., bad indentation, missing colon).
Q13. What is a string?
A: Text inside quotes, e.g., "hello".