In this era of diversity in the latest technology, the ability to learn and be equipped with languages is the most challenging and exciting thing for a developer or a geek. As a .NET developer, I found it interesting to start with python, an open-source programming language using the microsoft IDE, the latest being Visual Studio Code. There are many reasons to choose and learn python as my choice out of the box now since Machine Learning is the newest! Python is the best programming language and is lightweight to use. It is my personal choice to choose python. Enough talk; let’s start with what python is and some facts about python.
It’s an interpreted language that follows object-oriented principles. Now, a lot of technical terms are being used. I know C# (programming language) is currently interpreted into bytecode and then compiled by the common language runtime. In contrast, python is a wholly interpreted language, which means it is executed directly at the runtime, unlike the compiled language, which first gets compiled into the assembly language that any CPU can understand. Python is considered one of the best rapid application development programming languages. It is easy for me to learn python so far, though it is just the beginning. Its semantics are diversified, making it easy and strict for the developers to follow the coding convention. The indentation is part of its syntax, and the semantics are modular, making it somewhat more convenient for the developers to maintain the code.
Here, I will share the process to set up python on windows. First of all, check if python is pre-installed on your system. To check that, open command prompt and type python. If the output is undesirable, i.e., ‘python’ is not recognized, it is not installed to that path.
To download and install python, click the link below: Download python for windows. Once downloaded, install the python file with the .msi extension in a path, navigate to the same path in the command prompt, and type Python there. This output would show python with the version installed, and we are ready to write our first “hello world” program and follow the tradition.
But before that, one of the essential things to be done is setting up the environment variables or the system path. This is mainly required in UNIX and windows because the OS searches for the executable in the specified path in the environment variables set. In macintosh, the path is handled by the installer. Thus, the below images would guide the set of the variables.
Now, we are all set for Python to run on Windows Command Prompt with the first “hello world” program.
To develop applications using python, we would need python IDE. There would be many in the market, but after being obsessed with Microsoft products, I prefer to use the open-source IDE by microsoft, Visual Studio Code.
After setting up python on windows, we must install the python extension for Visual Studio Code. Once the extension of python for the Visual Studio code is installed, open Visual Studio Code and go to Files->Preferences->Settings. Once navigated, the user settings window pops up.
Once you see this window,
Search for the “python.pythonPath”. There would be Default Settings for the variable, now change the path to the installed folder path on your system.
Path is changed under User Settings too.
Now, we are all set to run any application on the Visual Studio Code in Python. Type python in the IDE terminal below; the output is as below.
When we navigate to the extensions, we can see python is enabled with the linking and debugging extension. These are used for IntelliSense, which is why I love Visual Studio. Also, a few modules/packages are third-party but can be used as these are all open-source. Just like in .NET, we have NuGet package manager. So, in the terminal itself of the IDE, we can install any python modules, like with the command below.
The above was one of the examples. The detailed discussion is out of this article’s scope. We will discuss this in upcoming articles of this series. Now, let’s go ahead without wasting much time. Create a small program in python and execute that to see the output.
This is a simple program where we have a class named “Car” with a method as start that prints “started”. We will learn more about the properties and constructor in the next article. Maruti is the object instantiated and then the method start() is invoked through it. Thus, debugging this will give the output “started”.
Next, we will discuss the details and basics of python in the upcoming articles of this series.
Next recommended article python functions overview
I will explain how to create and call functions in python in this article.
A journey has just begun to create a culture, not an organization.
We at INVINCIX are determined to digitize 500+ start-ups in this era of digitization during the course of the upcoming two fiscal years, FY 2022–2023 and FY 2024–2025.
Dealing directly with the definition and goal of the business.
Efficiency is something that requires constant study.
Deeper comprehension of one another's working methods that will pay off in the long run.
Our goal is to establish a GenInvinci organization with the capacity to "Engage," "Innovate," "Invent," and "Excel"
A sense of satisfaction when you touch the heart with emotion.
We will keep our feet grounded, to ensure, your head is in the cloud.
Honoring the exceptional INVINCIANS
A minute to reflect on the success
It means a lot to us.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Join our Growing Team And Proud To Ba An INVINCIANS.
Let's connect and find the solutions you need. Our team is ready and waiting to assist you with any questions or concerns you may have.
The framework for digital transformation makes excellence in "Innovation," "Agility," and "Responsiveness" possible
The software industry began with the automation of manual tasks. Over time, the automation changed and became known as "Digitalization services"
Experience AD4P : Harness the power of IT to guarantee that your application is prepared for the future
Unique thoughts are valuable and creative thinking are hard to come by. A brilliant idea is always the source of a product
Our consulting will hold your hand and be part of you, through out transformation journey.
Clear emphasis on the experience not on the interface make us a class apart .
As enterprises look to software as a source of competitive advantage, they demand quality-at speed and scale.
Taking relevant info out of a data sea
A keen eye for the bottom line
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Using barcodes to manage inventory quickly
Routing that is easy on the wallet while maintaining client satisfaction
Automating processes to increase efficiency in the service sector
Boost productivity and enable success with the vendor management system
Simplifying the verification and control of your inventory
Connecting world via blood
Implement the “Interpreted” “Inception”
We don’t inspect quality, we inject quality
UX is the key not the interface…
Transforming Database Innovation and Performance / Empowering Data-Driven Excellence
Digital transformation is a business discipline
“Swift and Simple” office automation
Simplify e-Invoicing with our secured SaaS-based APIs
Make your service station digital
Your digital event partner is here
Extracting meaningful data from ocean of data
connecting hospitality industry smoothly
A mini ERP for all your need
Connecting world via blood
Browse our workshop calendar for upcoming events and opportunities to expand your knowledge and skills.
Explore our diverse range of courses designed to cater to various interests, offering opportunities for personal and professional growth
Head Office
Sharadha Bhawan, Rajendra Nagar, Cuttack, Odisha - 753010, India
Branch Office
Plot No.353, 1st Floor, Infocity Ave, Sishu Vihar, Patia, Bhubaneswar, Odisha - 751024, India
Branch Office
60 eu tong sen street #02 03 furama city center Singapore 059804
Branch Office
Amba House, 15 College Road, Harrow, England, HA11BA
Branch Office
02nd Floor, Saigon Paragon Building, No.3 , Nguyen Luong Bang Street, Tan Phu Ward, District 07, Ho Chi Minh City, Vietnam