Programming with Python

⌘K
  1. Home
  2. Docs
  3. Programming with Python
  4. Introduction to Python
  5. Values and Types
  6. Identifiers

Identifiers

Python Identifiers

  • A python identifier is the name given to a variable, function, class module or other object
  • An identifier can begin with an alphabet (A-Z or a-z) or an underscore (_) and can include any number of letters, digits or underscores. Spaces are not allowed
  • Python does not accept @, $, and % as identifiers.
  • Python is a case sensitive language
  • Example: Student, student are different identifiers
  • Valid examples are : _ab, _

Keywords

  • Python has a list of reserved words known as keywords.
  • Every keyword has a specific purpose and use.

Some reserved keywords are,

Loading

Views: 9

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments