Click on the button Show Python Prompt.

In order to have the prompt automatically appear, go to Preferences>Build, Execution, Deployment>Console> check Always show debug console
Click on the button Show Python Prompt.

In order to have the prompt automatically appear, go to Preferences>Build, Execution, Deployment>Console> check Always show debug console