Computer Science, asked by sunitaprakashmondal, 1 year ago

differentiate between identifiers and keywords​

Answers

Answered by Equestriadash
7

Identifiers and keywords are both components of Python IDLE.

IDENTIFIERS:

  • Identifiers are unique names given to a variable.
  • They identify the name of a entity when asked.
  • Can consist of letters, numbers and underscores; no other special character can be used.
  • They aren't case sensitive.

Examples:

XID, high_score, bot, etc.

KEYWORDS:

  • They are reserved words in the program.
  • They specify the operation/command requested.
  • Can consist of only letters.
  • Case sensitive [lowercase]; True, None and False are the only keywords having a higher case.
  • No special character can be used.

Examples:

int, or, and, if, etc.

(Attachment 1 - Identifiers; Attachment 2 - Keywords.)

Attachments:
Answered by nehaelsa14
31

KEYWORDS: The reserved words of python which have a special fixed meaning for the interpreter are called keywords. No keywords can be used as an identifier.

IDENTIFIER: The name of any variable constant function or module is called as an identifier.

HOPE IT HELPS YOU

Similar questions