Python interpreter - interactive mode - Script mode | TAMIL | UNIT-2 CSE | P7 | #GE3151 | QT
Topic covered in this video :- Python interpreter - interactive mode - Script mode | TAMIL | UNIT - 2 CSE | P7 | #GE3151 | Quick Through PROBLEM SOLVING AND PYTHON PROGRAMMING for computer science engineering in 1st semester playlist of PROBLEM SOLVING AND PYTHON PROGRAMMING subject :- https://youtube.com/playlist?list=PLICimQMp9BrQ4PFd271SdWyDFTHsq7vii join to our telegram channel to download the pdf used in this video: https://t.me/cseengineeringnotes Join this channel to get access to perks: https://www.youtube.com/channel/UC7yxavkwDx3RfY4Utu2lycw/join Chapters: 00:00 - Topic Covered 01:04 - INTRODUCTION TO PYTHON 04:12 - Python Features 06:37 - who to install python? 09:02 - Difference between interpreter and Compiler 14:45 - Interactive mode in python 25:11 - Script mode in python 31:51 - Difference between Interactive mode and Script mode 33:45 - Integrated Development Learning Environment(IDLE) 43:32 - Next Topic GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING INTRODUCTION TO PYTHON: Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Python got its name from “Monty Python’s flying circus”. Python was released in the year 2000. Python is interpreted: Python is processed at runtime by the interpreter. You do not need to compile your program before executing it. Python is Interactive: You can actually sit at a Python prompt and interact with the interpreter directly to write your programs. Python is Object-Oriented: Python supports Object-Oriented style or technique of programming that encapsulates code within objects. Python is a Beginner's Language: Python is a great language for the beginner Level programmers and supports the development of a wide range of applications. Python Features: Easy-to-learn: Python is clearly defined and easily readable. The structure of the program is very simple. It uses few keywords. Easy-to-maintain: Python's source code is fairly easy-to-maintain. Portable: Python can run on a wide variety of hardware platforms and has the same interface on all platforms. Interpreted: Python is processed at runtime by the interpreter. So, there is no need to compile a program before executing it. You can simply run the program. Extensible: Programmers can embed python within their C,C++,JavaScript, ActiveX, etc. Free and Open Source: Anyone can freely distribute it, read the source code, and edit it. High Level Language: When writing programs, programmers concentrate on solutions of the current problem, no need to worry about the low level details. Scalable: Python provides a better structure and support for large programs than shell scripting. Python interpreter: Interpreter: To execute a program in a high-level language by translating it one line at a time. Compiler: To translate a program written in a high-level language into a low-level language all at once, in preparation for later execution. Python interpreter: Modes of python interpreter: Python Interpreter is a program that reads and executes Python code. It uses 2 modes of Execution. 1. Interactive mode 2. Script mode Interactive mode: Interactive Mode, as the name suggests, allows us to interact with OS. When we type Python statement, interpreter displays the result(s) immediately. Advantages: Python, in interactive mode, is good enough to learn, experiment or explore. Working in interactive mode is convenient for beginners and for testing small pieces of code. Drawback: We cannot save the statements and have to retype all the statements once again to re-run them. In interactive mode, you type Python programs and the interpreter displays the result: Script mode: In script mode, we type python program in a file and then use interpreter to execute the content of the file. Scripts can be saved to disk for future use. Python scripts have the extension .py, meaning that the filename ends with.py Save the code with filename.py and run the interpreter in script mode to execute the script Vs Integrated Development Learning Environment(IDLE): Is a graphical user interface which is completely written in Python. It is bundled with the default implementation of the python language and also comes with optional part of the Python packaging. Features of IDLE: Multi-window text editor with syntax highlighting. Auto completion with smart indentation. Python shell to display output with syntax highlighting.
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.