Python Tutorial 1 – Python Basics

Python Tutorial 1 – Python Basics

Introduction: Python is widely used programming language now-a-days for a wide magnitude of tasks like general programming, web development, data analysis and machine learning. Thanks to a variety of features, most developers are now moving to python language for their development work. Also most IT professionals are intended to Learn Python Language. Python was founded by Guido van Rossum during 1985-1990.

Python is a high level language based on Object Oriented programming model. This means that everything that is coded is modelled into classes and objects.

Features of Python:

Python is interpreted language: Unlike other programming languages, like Java, Python does not have a separate compilation step. The implementation of Python follows interpretation model. Code is processed at run-time by interpreter. There is no need to compile the code. I have already shared a post to explain more on this point: https://mytechdevice.com/java-vs-python-compiled-or-interpreted/

Python is very interactive: Python syntax resembles much like normal English language hence easy to interact with.

Four EASYs of Python: Because of its easy syntax, and an ability to write code in fewer lines of code, below activities becomes very easy: Easy to write, Easy to learn, Easy to read, Easy to understand, Easy to maintain

Semicolon is not used: Python code does not have semicolon way of ending a line. End of line is the end of command

Python follows indentation: Python uses indentation to define scope of line of code. For example, the code written in any loop (for, if) has to follow indentation.

Python is dynamically typed language: There is no need to declare variables or their types in advance. We can use whenever we want. The value of variable will decide its type.

Because of all the above mentioned features, its very interesting and easy to Learn Python Language.

What is Python Software Foundation: PSF is Python Software Foundation whose task is to promote, protect and advance Python language and work on the updates periodically. It is the parent body that manages and produces core Python distribution. Since Python and its distribution is open source, other partners also have the freedom to work on their own Python distribution many of which are available in market.

The Python distribution maintained by PSF is based on C language hence also called as CPython. There is a Python version based on Java which is known as JPython.

Core Python distribution version currently in use is Python 3.0 and above. Earlier version Python 2.0 is compatible is Python 3.0.

Leave a Reply

Your email address will not be published.