Advertisements
Advertisements
Question
Which of the following identifier name are invalid and why?
total-Marks
Options
Invalid
Valid
MCQ
Short/Brief Note
Advertisements
Solution
Invalid
Explanation:
Identifiers in Python cannot contain any special character except underscore(_). If more than one word is used as a variable then it can be separated using an underscore (_), instead of a hyphen (-).
shaalaa.com
Python Identifiers
Is there an error in this question or solution?
