what is an Instance in python?? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

what is an Instance in python??

please explain in simple words with an example...

20th Aug 2016, 6:37 AM
Ashish Rameshan
1 ответ
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