A Python Shell is used to execute a single Python command and display the result. It is also known as REPL (Read, Evaluate, Print, Loop), where it reads the command, evaluates the command, prints the result, and loop it back to read the command again.
To open Python shell, open the command prompt or power shell on Windows or terminal window on mac, write
python and press enter. A Python Prompt comprising three greater-than symbols
>>> appears, as shown below.
Now in the shell, you can enter a single statement and get the result.