An Overview Of Python

Introduction

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.

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.

Setting up Python

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.

 

Get started with 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.

  1.  //Default settings  
  2. // Path to Python, you can use a custom version of Python by modifying this setting to include the  
  3. full path.  
  4. “python.pythonPath”: “python”  

Path is changed under User Settings too.

  1. //User Settings  
  2. {  
  3.    “python.pythonPath”: “C:\\Python27\\python.exe”  
  4. }  

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.

  1. > Python -m pip install hippie  

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.

  1. class Car(object):  
  2. “”” 
  3. blueprint for car 
  4. “””  
  5. def __init__(self, model, color, company, speed_limit):  
  6. self.color = color  
  7. self.company = company  
  8. self.speed_limit = speed_limit  
  9. self.model = model  
  10. def start(self):  
  11. print(“started”)  
  12. maruti = Car(“Ertiga”,”White”,”Maruti Suzuki”,140)  
  13. maruti.start()  

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”.

Conclusion

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.

More Posts

GENeration INVINCIble culture

A journey has just begun to create a culture, not an organization.

INVINCIX for Start-ups

In this era of digitization, we at INVINCIX are on a mission to digitize 500+ Start-Ups during the next 2 financial year FY 2021-22 And 2022-23.

Business eXperience delivery – BXD

Direct dealing with the business definition and objective .

Focus on : Optimized investment

Continuous improvement on efficiency is a learning curve.

High operations efficiency index

Deeper understanding of each other’s working style leading to long-term benefits.

Believe and philosophy

We are committed to build a GenInvinci organization that has the ability to “Engage”, “Innovate”, “Invent” And “Excel”

Corporate responsibility

A sense of satisfaction when you touch the heart with emotion.

INVINCIANS

We will keep our feet grounded, to ensure, your head is in the cloud.

Achievers

Recognizing the outstanding Invincians

Client speak

A moment to look back the accomplishment.

Accolades

It means a lot to us.

Knowledge Corner

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Career

Join our Growing Team And Proud To Ba An INVINCIANS.

Contact us

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.

Business transformation and re-engineering

Digital transformation framework enables excellence in “Innovation”, “Agility” And “Responsiveness”

IT process and automation services

The existence of software industry started with automation of manual processes. The automation has evolved over a period of time and termed as “Digitalization Services”.

Software development services

AD4P Experience – Unlock the potential of IT to ensure your application is future enabled .

Product engineering

Original thinkers are rare and original ideas are precious. A product is always originated by a great idea.

Simplified consulting

Our consulting will hold your hand and be part of you, through out transformation journey.

User experience services

Clear emphasis on the experience not on the interface make us a class apart .

Quality assurance

As enterprises look to software as a source of competitive advantage, they demand quality-at speed and scale.

Data management and data science

As enterprises look to software as a source of competitive advantage, they demand quality-at speed and scale.

E-board Online

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Barcode inventory

Quick inventory management using barcodes .

Routing matrix

Cost effectiveness routing with ease of customer satisfaction.

DigiStack

Unleashing efficiency in the service industry through automation .

Vendor management system

Elevate efficiency and facilitate success with vendor management system.

Spare parts management system

Simplifying your stock validation & management process.

Agile office

“Swift and Simple” office automation

Telto

Make your service station digital

Clidok

Your doctor is a click away

Tawny

A watchdog for your digital infrastructure

White patches In black-box

Extracting meaningful data from ocean of data

Vendor management system

connecting hospitality industry smoothly

X Solutions

A mini ERP for all your need

Instablood

Connecting world via blood

Invoicedge

Simplify e-Invoicing with our secured SaaS-based APIs

Workshop calendar

Browse our workshop calendar for upcoming events and opportunities to expand your knowledge and skills.

Courses

Explore our diverse range of courses designed to cater to various interests, offering opportunities for personal and professional growth

Cuttack

Head Office
Sharadha Bhawan, Rajendra Nagar, Cuttack, Odisha 753010

Bhubaneswar

Branch Office
Plot No.353, 1st Floor, Infocity Ave, Sishu Vihar, Patia, Bhubaneswar-751024, Odisha, INDIA

Singapore

Branch Office
60 eu tong sen street #02 03 furama city center Singapore 059804

UK

Branch Office
28 Rye Croft Avenue, Twickenham, London, Tw2 6hr

Vietnam

Branch Office
02nd Floor, Saigon Paragon Building, No.3 , Nguyen Luong Bang Street, Tan Phu Ward, District 07, Ho Chi Minh City, Vietnam