Which of the following is bad python variable name
spam_23
SPAM23
#spam _spam
Answers
Answered by
0
#spam _spam is the correct answer to the given question.
Explanation:
The variable is the storage area of the program .Following are the rules to declaring the variable in the python programming language .
- Variable must start with alphabet it never be start with the digit.
- Variable may be the alpha-numeric characters and the underscores .
- We cannot declared a keyword as a variable name in the python programming language .
- We also declared the variable In the capital letter .
- spam_23 and SPAM23 follow the rules of variable .So good python variable name.
- #spam _spam is not follow the rules of variable in the python programming because the variable never be start with # it must start with character .
Learn More :
- brainly.in/question/16917213
Similar questions
Accountancy,
4 months ago
Social Sciences,
4 months ago
Accountancy,
9 months ago
Environmental Sciences,
9 months ago
Math,
11 months ago
Chemistry,
11 months ago
Physics,
11 months ago