What does it mean to “reference an object”?
I was trying to create a code where it uses a function from a different class. I was told i have to reference an object before adding the function. What does this mean?
Functions in classes are called methods, and they're supposed to be only accessible via the class and its instances.
Take a simple Python list for example.
a_list = [1, 3, 2]
If you print out that list later, it will be sorted.
But sort belongs to lists, so you always have to call it *with* a specific list (an object/instance) as you just saw here.