Podcast
Questions and Answers
What is a string constant in Python?
What is a string constant in Python?
- A variable used to store a value
- A collection of characters enclosed by quotes (correct)
- A reserved word that cannot be used as a variable name
- A number with decimal point
What is the naming rule for Python variables?
What is the naming rule for Python variables?
- Variables can only begin with a letter or an underscore (correct)
- Variables can only begin with a number
- Variables can only contain letters
- Python is not case-sensitive when it comes to variable names
What is an integer constant in Python?
What is an integer constant in Python?
- A number with decimal point
- A number without decimal point (correct)
- A variable used to store a value
- A collection of characters enclosed by quotes