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

Create instance of class

class Point:
    pass

p1 = Point()
print(p1)                    # <__main__.Point object at 0x7f1cc1e3d1c0>
print(type(p1))              # <class '__main__.Point'>
print(p1.__class__.__name__) # Point