Which of the following is not a valid variable name in Python?
- 123myvar
- MyVar
- _my_variable
- my-variable
Variable names cannot start with a digit in Python, so "123myvar" is not a valid variable name.
Loading...
Related Quiz
- _______ is the built-in Python exception for an error in the program logic.
- If you have a break in the inner nested loop, will it terminate only the inner loop or both inner and outer loops?
- Which HTTP method is commonly used to read or retrieve data in a RESTful API?
- You are creating a custom Matrix class and want to use the standard multiplication symbol (*) to perform matrix multiplication. What should you implement to support this behavior?
- The process of visiting all the nodes of a tree and performing an operation (such as a print operation) is called ____.