Python Interpreter or REPL

After installation of python, A python shell appears on your computer screen (shown below). It is known as python interpreter shell or REPL ( Read-Evaluate-Print-Loop ).

What is interpreter or REPL?

 As we know, python is a interpreted language, so it helps to execute the code 'line-by-line'. And it creates a read-evaluate-print-loop while executing the code, Which means on the same time code can be read, evaluate and then print.

Using python interpreter.

Python Interpreter or REPL can be used to execute one line of code at a time. your code line should be written after three greater-than symbol ( >>> ).

Using Interpreter REPL as a calculator.

symbols that will be used :

 +  : For addition
 -   : For subtraction
 *   : For multiplication
 \   : For division



What is the symbol to find the square of a number in python? Tell your answer in comment section.

Comments