Podcast
Questions and Answers
What is a variable in Python?
What is a variable in Python?
- A container that holds data or values (correct)
- A type of loop used for iterating over a sequence
- A reserved keyword for defining a data type
- A function used to perform mathematical operations
Which symbol is used for assignment in Python?
Which symbol is used for assignment in Python?
- +=
- ==
- -=
- = (correct)
What is the naming convention for variables in Python?
What is the naming convention for variables in Python?
- Variables must start with a number
- Variables can contain spaces
- Variables should have descriptive names (correct)
- Variables must start with an underscore
Which of the following is NOT a valid variable name in Python?
Which of the following is NOT a valid variable name in Python?