English

Which of the following identifier name are invalid and why? Total Marks - Computer Science (Python)

Advertisements
Advertisements

Question

Which of the following identifier name are invalid and why?

Total Marks

Options

  • Invalid

  • Valid

MCQ
Short Note

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 space.

shaalaa.com
Identifiers
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 115]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 5 Getting Started with Python
Exercise | Q 1. iv | Page 115
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×