what is an Instance in python?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is an Instance in python??

please explain in simple words with an example...

20th Aug 2016, 6:37 AM
Ashish Rameshan
1 Answer
0
Not unlike the ambiguity between "class" and "type", "instance" is synonymous to "object". Think of it this way: objects are instances of types. So, "42 is an instance of the type int" is equivalent to "42 is an int object".
27th Aug 2016, 6:06 PM
Eduard Hirsch
Eduard Hirsch - avatar