Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Import class from module

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

from shapes import Point

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