Curriculum
In this lesson, you will learn about setting up Python Development Environment so that you can start developing python application using various IDE(Integrated development environment)
Let us learn how to download and install python on your local machine, which is the first step in setting up your Python development environment.
Now let us learn to get the installed python version in the command line.
The next step in setting up your Python development environment is to download an IDE or to use an IDLE.
To open an IDLE and print ‘Hello World’
print (“Hello World”)
Now, to use an IDE we need to understand what an IDE is and how it works.
IDE stands for Integrated Development Environment. It integrates multiple tools for the sole purpose of software development. It includes tools for code execution, debugging, building, an editor and source control.
There are multiple IDEs and Code editors available in the market which supports python. The best of them being Pycharm which is entirely built using python, Visual studio code, Eclipse+PyDev, Thonny IDE an IDE for beginners.
Let us learn how to install and use Thonny IDE.
Now let’s execute a simple program for printing Hello world using the Thonny IDE.
print(“hello world”)
To run the file,
If you use the Visual Studio 2022 IDE, follow these steps to create a project in visual studio 2022:
‘Project’ is how Visual Studio organizes all the files under the project that jointly produce a single application.
Application files include source code, resources, and configurations.
That’s how you create a new project in Visual Studio 2022.
It is always not necessary to download an IDE to setup the python development environment. You can use a number of online compilers to execute your code.
The most popular online compiling platform is CodersEditors.com. It is the most used and preferred online compiling platform and it is absolutely free. This free online compiler and IDE allows the developers to try out more than 60+ languages without having to install IDE or code editors on their machines.
Steps to run a Python Code in CodersEditor:
For instance, run the following code in the script section and press F9/ click on the run program option.
Code:
print(“Hello World”)