हिंदी

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

Advertisements
Advertisements

प्रश्न

Which of the following identifier name are invalid and why?

total-Marks

विकल्प

  • Invalid

  • Valid

MCQ
टिप्पणी लिखिए

उत्तर

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
Identifiers
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Getting Started with Python - Exercise [पृष्ठ ११५]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
अध्याय 5 Getting Started with Python
Exercise | Q 1. vi | पृष्ठ ११५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×