Guide to Python: Lesson 02

Hey there, welcome back to Guide to Python! It's good to see you here again. Now that you have some understanding of the basics of programming, let's dive in deeper.





Programming is essentially about solving problems with the help of computers. To achieve this, we break down large tasks into smaller, manageable steps. Imagine it like preparing a delicious meal: each step, from chopping vegetables to cooking the main course, is completed in a specific order. Similarly, a computer program (or code) functions like a recipe. It contains all the necessary instructions (ingredients and steps) to achieve the desired outcome. Keep this analogy in mind as you tackle larger programming goals. Remember, efficient microsteps are the key to well-written code.


Software for writing Python

To write the python you need to install these two programs in your system. 
  1. Visual Studio Code : Code Editor 
  2. Python :  Interpreter and runtime 

Visual Studio Code 

VS code is for writing code in any language including Python. Visual Studio Code is a free, lightweight, and extensible code editor for building web, desktop, and mobile applications, using any programming language and framework.

You can use Visual Studio Code to build any kind of app, for web, desktop, and mobile. Visual Studio Code supports JavaScript and TypeScript natively and offers extensions for coding in languages such as Python, Java, C/C++, C#, Go, Rust, PHP, and many more. 

Python (Interpreter and Runtime) 



Python (Interpreter and Runtime) refers to the components necessary to execute Python code. 

The Python interpreter is the program that reads and executes Python code. When you write Python code in ' .py' file and run it, the interpreter processes the code line by line, translating it into machine code that your computer's hardware can execute. 

The Python runtime encompasses the environment in which the Python interpreter runs. 

In simple terms, the interpreter acts like a translator, converting your Python code into a language the computer understands. The runtime environment then becomes the stage where the translated code is brought to life and executed. 

Installation

How to install VS Code and Python in your system? 

This is a very simple and straightforward process. In windows you can directly go to the Microsoft Store and install both the applications in your windows. 

Go to Microsoft store and search for Python and press the "Get' button. 



Or you can visit official website to download the latest version of Python. 

Go to Microsoft store and search for VS Code and press the "Get' button. 


For Mac and other users visit the official site below to install the latest versions of these software:
Great job making it through Lesson 02! Now that you know how to install VS Code and Python, take some time to set them up. Once you're done, come back for the next lesson where we'll explore the basics of writing Python code and put your new environment to use! Get ready to write your first program! Keep up the great work, and see you in Lesson 03!





Post a Comment

Previous Post Next Post