Question discussion

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

3518Medium DSSSB TGT Computer Science 0 replies 2 views
0

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

  • AAn identifier can have underscore (_) symbol
  • BWe must use keywords as identifier
  • CThere is restriction the length of an identifier
  • DAn identifier must start with a digit
Correct answer: A

Explanation

A Python identifier can contain underscores; it cannot start with a digit, be a keyword, and has no length limit.

Discussion 0

Nobody has replied yet. Start the discussion!