Python Interactive Interpreter
Python Interactive Interpreter
Selenium Python Beginner Course
https://www.testingdocs.com/study/courses/selenium-python-beginner/
Selenium Python Beginner Course
https://www.testingdocs.com/study/courses/selenium-python-beginner/
Category
📚
LearningTranscript
00:00Python is an interpreted language, so the Python interpreter executes the Python code
00:15line by line.
00:17The Python Interactive Interpreter is a command line tool that allows you to execute Python
00:23code line by line.
00:25To launch the tool, open the command prompt, and execute the following command, python,
00:35enter the command python, and this will launch the Python Interactive Interpreter.
00:42The three angled brackets is the Python prompt where you can enter the Python commands.
00:49Let's add two numbers and see the output.
00:58You can see the immediate output of the command.
01:05So this tool will help you to visually analyze and run a single Python statement at a time
01:13and see the output.
01:15Let's run another command, for example, let's see, we are just trying to print a string,
01:28testing blocks.
01:29You can see the output is displayed immediately.
01:33The Python interpreter has executed this line of code and displayed the output.
01:40So in another example, let's import a module, bookmap module, and invoke a function in the
01:52module, let's say, square root of 64.
02:00Now you can see the output got displayed immediately.
02:05Learning this tool is important before writing Python scripts because the command or the
02:14tool allows you to execute a single statement at a time and analyze the output or see the
02:21visual feedback.