In PyCharm, you can use an interactive Python session to quickly tests a code fragment, to consult the online help or to execute the code from the editor. The instruction video below explains how to start and use an interactive session in PyCharm (with Python version 3.6).

Proceed as follows to start an interactive session: