Python Objects

  • In python everything is an object. Numbers, Strings, Booleans and even code is considered as objects.
  • Objects are like containers of data.
  • Numbers,Strings and Booleans –  Single Value
  • Tuples, Lists, Sets and Dictionaries – Multiple values  – also called containers.
  • Every Object will have a name, type and an ID.
  • Type and ID will not change during the life of the object.
  • Object names must have only alphanumeric and underscore characters.
  • Name must not start with a digit.

Leave a Reply