GE8151-Unit 2- Python Interpreter and Interactive mode
10 flashcards · Programming Languages · by joelanandraj
Define Python.
Python is an interpreted, high-level, general-purpose programming language.
What is high level language ?
A high-level language is a programming language like C, Python that enables a programmer to write programs that are more or less independent of a particular type of computer.
What is low level language ?
A low-level language is a type of programming language that contains basic instructions recognized by a computer.
What is the purpose of interpreter ?
To convert high level language into low level language.
In general, what are the two kinds of programs that converts high level language into low level language.
Interpreter Compiler
What is the difference between compiler and interpreter ?
Compiler converts the whole program in one go on the other hand Interpreter converts the program by taking a single line at a time.
What are the two modes in which python interpreter operates ?
Normal Mode Interactive Mode
What is Normal Mode ?
The normal mode is the mode where the scripted and finished .py files are run in the Python interpreter.
What is interactive mode ?
Interactive mode is a command line shell which gives immediate feedback for each statement given in the shell.
What are the limitation of Interactive mode ?
Programs we type in the interactive mode goes away as soon as the Python interpreter executes them. The code you type interactively is never stored in a file, so you can't run it again without retyping it from scratch.