Import class from module


Alternatively you can import the class from the modue and then you can use the classname without any prefix.

examples/oop/create/import_class.py
from shapes import Point

p = Point()
print(p)          # <shapes.Point instance at 0x7fb58c31ccb0>