Computer Science, asked by Angelo299, 9 months ago

Which of the following is bad python variable name
spam_23
SPAM23
#spam _spam

Answers

Answered by StaceeLichtenstein
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