Advertisements
Advertisements
Question
Which of the following identifier name are invalid and why?
total-Marks
Options
Invalid
Valid
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 (-).
APPEARS IN
RELATED QUESTIONS
Which of the following identifier name are invalid and why?
Serial_no
Which of the following identifier name are invalid and why?
1st_Room
Which of the following identifier name are invalid and why?
Hundred$
Which of the following identifier name are invalid and why?
Total Marks
Which of the following identifier name are invalid and why?
Total_Marks
Which of the following identifier name are invalid and why?
_Percentage
Which of the following identifier name are invalid and why?
True