which of the following is an invalid variable name in Python
Answers
Answered by
0
Answer:
The following are examples of invalid variable names: age_ (ends with an underscore); 0st (starts with a digit); food+nonfood (contains character “+” which is not permitted)
Explanation:
A variable name must start with a letter or the underscore character. A variable name cannot start with a number. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) Variable names are case-sensitive (age, Age and AGE are three different variables)
Similar questions