The document discusses setting up a Python programming environment by downloading Python, installing IDLE, installing PyCharm, and how the Python interpreter works by reading code, verifying syntax, translating to bytecode, and executing via the virtual machine.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
54 views
UNIT1 Lesson 1 Python Installation
The document discusses setting up a Python programming environment by downloading Python, installing IDLE, installing PyCharm, and how the Python interpreter works by reading code, verifying syntax, translating to bytecode, and executing via the virtual machine.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17
Setting up your Programming Environment
Python versions
3.8, 3.9. 3.10,3.11…….3.11.4(Latest)
Installation of IDLE(Integrated Development and Learning Environment)
• Open the following link and download Python
https://www.python.org/downloads/ Step 1 Step 2 Step 3 Interactive Programming Environment(IDLE Shell)[>>>(Shell Prompt)] Interactive Programming Environment(IDLE Shell)[>>>(Shell Prompt)] Python Script To compose and execute programs in this manner, you perform the following steps: 1. Select the option New File from the File menu of the shell window. 2. In the new file, enter Python expressions or statements on separate lines, in the order in which you want Python to execute them. 3. At any point, you may save the file by selecting File/Save. If you do this, you should use a . py extension. For example, your first program file might be named myprogram.py. 4. To run this file of code as a Python script, select Run Module from the Run menu or press the F5 key Installation of Pycharm • Open the following link: https://www.jetbrains.com/pycharm/download/#section=windows •Download the Community Edition Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 How python interpreter works? Whether you are running Python code as a script or interactively in a shell, the Python interpreter does a great deal of work to carry out the instructions in your program Steps: 1. The interpreter reads a Python expression or statement, also called the source code, and verifies that it is well formed. In this step, the interpreter behaves like a strict English teacher who rejects any sentence that does not adhere to the grammar rules, or syntax, of the language. As soon as the interpreter encounters such an error, it halts translation with an error message. 2. If a Python expression is well formed, the interpreter then translates it to an equivalent form in a low- level language called byte code. When the interpreter runs a script, it completely translates it to byte code. 3. This byte code is next sent to another software component, called the Python virtual machine (PVM), where it is executed. If another error occurs during this step, execution also halts with an error message
Python Programming: 8 Simple Steps to Learn Python Programming Language in 24 hours! Practical Python Programming for Beginners, Python Commands and Python Language
Python Programming Illustrated For Beginners & Intermediates: “Learn By Doing” Approach-Step By Step Ultimate Guide To Mastering Python: The Future Is Here!: The Future Is Here!
Python Programming Illustrated For Beginners & Intermediates“Learn By Doing” Approach-Step By Step Ultimate Guide To Mastering Python: The Future Is Here!
Python Programming: 8 Simple Steps to Learn Python Programming Language in 24 hours! Practical Python Programming for Beginners, Python Commands and Python Language
Python Programming Illustrated For Beginners & Intermediates: “Learn By Doing” Approach-Step By Step Ultimate Guide To Mastering Python: The Future Is Here!: The Future Is Here!
Python Programming Illustrated For Beginners & Intermediates“Learn By Doing” Approach-Step By Step Ultimate Guide To Mastering Python: The Future Is Here!