Cards (10)

  • An identifier is a random name used in a program by the programmer for representing a variable,  function, module etc.
  • Identifier is a name given to a variable, function, class, or module.
  • Identifiers can be a combination of letters in lowercase ( a to z ) or uppercase ( A to Z ) or digits ( 0 to  9 ) or an underscore (_). Names, like myCountry, other_1, and good_morning - all are valid  examples. A Python identifier can begin with an alphabet ( A - Z, a - z, and _ ).
  • An identifier cannot start with a digit but is allowed everywhere else. 1plus is invalid, but plus1 is  perfectly fine. 
  •  Keywords cannot be used as identifiers.
  • One cannot use spaces and special symbols, like !, @, #, $,%, and etc. as identifiers.
  • An identifier can be of any length. 
  • Keywords are a set of pre-defined words or reserved words that have predefined meanings and  are reserved for some specific purpose.
  • Keywords are special vocabulary and cannot be used by  programmers as identifiers for giving names for variables, functions etc.
  • Keywords are reserved and have a specific pre-defined meanings whereas identifiers are  the names given to variables, functions etc.