nerdexam
Huawei

H13-311_V3.5 · Question #309

The constituent elements of the Python identifier include: numbers, letters, and underscores.

The correct answer is A. True. Option A is correct because Python identifiers can indeed be composed of three types of characters: letters (a–z, A–Z), digits (0–9), and underscores (_). Since the question presents only two choices (True/False), option B is the only distractor - it is wrong because it would…

Huawei AI Development Platforms and Solutions

Question

The constituent elements of the Python identifier include: numbers, letters, and underscores.

Options

  • ATrue
  • BFalse

How the community answered

(56 responses)
  • A
    82% (46)
  • B
    18% (10)

Explanation

Option A is correct because Python identifiers can indeed be composed of three types of characters: letters (a–z, A–Z), digits (0–9), and underscores (_). Since the question presents only two choices (True/False), option B is the only distractor - it is wrong because it would imply identifiers have different or additional restrictions, which is not the case.

One important nuance to remember: while numbers are allowed within identifiers, they cannot appear as the first character - var1 is valid, but 1var is not. A helpful memory tip: think of a valid Python identifier like a proper name - it can contain numbers (like "R2D2"), but it can't start with one.

Topics

#Python Identifiers#Python Syntax#Programming Basics#Variable Naming

Community Discussion

No community discussion yet for this question.

Full H13-311_V3.5 Practice