What happens behind the
scenes, if we define a class?
We have already seen, that
applying „type“ to an object
returns the class of which
the object is an instance of:
x = [4, 5, 9]
y = "Hello"
print(type(x), type(y))
We receive the following output:
<class 'list'> <class 'str'>