PYTHON INTRODUCTION

In this tutorial, we will look at the python introduction and how important of a programming language it has become over the years.

Python Introduction: What is Python?

Python is a broadly useful, object-oriented programming language. It is powerfully composed. Its meaningfulness alongside its incredible libraries have given it the respect of being the most preferred language for careers like that of a data scientist or an AI expert.

Python is likewise frequently picked as the language for programming in schools and colleges due to its easy to understand features. This Python instructional tutorials will help you to learn Python from scratch and you will end up having an ace in Python soon.


Python Introduction: Design and Philosophy of Python

Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales. Van Rossum led the language community until July 2018.

Python is dynamically typed. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Python features a comprehensive standard library, and is referred to as “batteries included”.





Python As a Language

Python is a scripting language like PHP, Perl, Ruby and so much more. It can be used for web programming (django, Zope, Google App Engine, and much more). But it also can be used for desktop applications (Blender 3D, or even for games pygame). Python can also be translated into binary code like java.


Syntax of Python

The syntax of the Python programming language is the set of rules that defines how a Python program will be written and interpreted (by both the runtime system and by human readers).


The Zen Of Python

To know Python in a more poetic  way, you can always type import this in your python interpreter and see the zen of of python yourself:

import this

Output:

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!




Your First Python Program

The following program will print out the sum of a and b respectively.

#Sum of two numbers a = 10 b = 20 sum = a + b print(sum)