Skip to main content
deleted 176 characters in body
Source Link
Avi Kaminetzky
  • 1.5k
  • 2
  • 21
  • 45

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See the docs: https://docs.python.org/3/library/functions.html#type.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See the docs: https://docs.python.org/3/library/functions.html#type.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See the docs: https://docs.python.org/3/library/functions.html#type.

added 12 characters in body
Source Link
Avi Kaminetzky
  • 1.5k
  • 2
  • 21
  • 45

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See the docs: https://www.geeksforgeeks.org/python-type-function/https://docs.python.org/3/library/functions.html#type.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See https://www.geeksforgeeks.org/python-type-function/.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See the docs: https://docs.python.org/3/library/functions.html#type.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

added 176 characters in body
Source Link
Avi Kaminetzky
  • 1.5k
  • 2
  • 21
  • 45

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See https://www.geeksforgeeks.org/python-type-function/.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See https://www.geeksforgeeks.org/python-type-function/.

The purpose of the type function is to give you the class of a given object, not the type of the instantiated object.

See https://www.geeksforgeeks.org/python-type-function/.

A good analogy would be a blueprint for a house. A class is like a blueprint, the object is the built house. Many objects can be "built" from the same "blueprint" or class.

Source Link
Avi Kaminetzky
  • 1.5k
  • 2
  • 21
  • 45
Loading