4 Questions
Which of the following is a valid Python variable name?
myVariableName
Which of the following is an example of Snake Case variable naming convention?
my_variable_name
Which of the following is NOT a valid technique to make variable names more readable?
Abbreviations
Which of the following is a more descriptive variable name?
total_volume
Study Notes
Variable Naming Conventions
-
_valid_variable
is a valid Python variable name. -
snake_case_example
is an example of Snake Case variable naming convention. - Using spaces to separate words is NOT a valid technique to make variable names more readable.
-
total_cost
is a more descriptive variable name compared totc
.
Test your knowledge on Python variable names and learn the rules and techniques for naming variables in Python.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free