Computer Science, asked by sonav504, 1 year ago

Which is bad python variable name
1.spam.23
2.spam23
3spam
4.spam_23

Answers

Answered by neha35866
9

Answer:

hey mate here is u r answer

Explanation:

the answer is 3.spam

Answered by ravilaccs
0

Answer:

The correct answer is option 3

Explanation:

  • Variables starting with numbers or any special characters are bad python variables.
  • The variable is the storage area of the program.
  • Following are the rules for declaring the variable in the python programming language
  • Variable must start with alphabet it never starts with the digit.
  • Variable may be the alpha-numeric characters and the underscores.
  • We cannot declare a keyword as a variable name in the python programming language.
  • We also declared the variable In the capital letter.
  • A bad variable name can be any variable name which doesn’t justify what the value going to assign it
Similar questions