Which of the following is correct for Identifiers name used in Python language?

2024

Which of the following is correct for Identifiers name used in Python language?

Answer: A. An identifier can have underscore (_) symbolA Python identifier can contain letters, digits, and underscores, but it cannot be a keyword and cannot start with a digit. Therefore an identifier can have…

  1. A.

    An identifier can have underscore (_) symbol

  2. B.

    We must use keywords as identifier

  3. C.

    There is restriction the length of an identifier

  4. D.

    An identifier must start with a digit

Attempted by 495 students.

Show answer & explanation

Correct answer: A

A Python identifier can contain letters, digits, and underscores, but it cannot be a keyword and cannot start with a digit. Therefore an identifier can have the underscore (_) symbol.

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…