Whether you’re learning about basic Python data structures (strings, lists, dictionaries, and so on) for the first time, or you are debugging an application, the interactive Python shell will be one of your best learning tools.
To use the interactive Python shell (also sometimes called a “Python REPL”), first make sure that Python is installed on your computer. To activate the interactive Python shell, simply open your terminal and run
python3, depending on your installation. You can find more specific directions in First Steps With Python.