Sunday, 30 December 2018

Python Features and Limitations

Python Features

1)Simple and easy to learn
2)freeware and open source
3)High Level Programming Language
4)Plateform independent
5)Portability
6)Dynamically Types
7)Both procedure Oriented and Object Oriented
x=10
def f1():
print("With out object we can call functon:",x)
f1()
8)Interpreted
9)Extensible
We can use other languages program in Python.
We can improve performance of the application.
10)Embedded
We can use Python programs in any other languages together easily
11)Extensive library Support
Program 1
import math
print(math.sqrt(4))
Progrm 2
from random import *
print(ranint(0,9),ranint(0,9),ranint(0,9),ranint(0,9),ranint(0,9),ranint(0,9),sep='')
->Going to generate 6 dogit random number without space
ie 453656

Python Limitation

1)Performance wise slow just becaus of interpreter

2)Mobile Applications

Saturday, 29 December 2018

Python Introduction and Installation



Python Introduction

Python is a general purpose high level programming language and introduced by Guido van Rossum in 1989 But it was released publicly in 1991.
It is a Open source, so anyone can contribute to its development.
Code that is as understandable as plain English language.
It is suitable for everyday tasks, allowing for short development times.

This is becoming most demanding language why because it provides very concise code and rich libraries(Batteries).

How it's provide concise Code?

Take Java language as an example where to write a simple program also we need to know what is class,package,modifiers etc.We need to write 3 to four line of coding just to print Hello Wold Program.
But in Python same can be achieved in one line only.In a similar fashion python provides flexibility to write 10 to 15 lines of coding where as in other languages could be of 100 lines.
Python is very powerful and demanding why because this can be used in below places:
1)Desptop application
2)Web Application using framework ie DJango
3)Database application
4)Networking application
5)Games
6)Data Analysis(Data Science)
7)Machine Learning
8)AI Application
9)IOT-Internet of things

Python Installation

Python comes with two parallel versions and not dependent on each other.
Python 3 is not a enhanced version of Python 2 but both are independent.
Its always recommended to start learning with Python 3 why because 2020 on wards there will not be any support from Python Software foundation for Python 2.



Open www.python.org and try to download latest stable version of python.

Go to download section and download

i.e.Python 3.7.2

Environment Variable Setup



There is an option provided by Python to set up the environment variable while installation time only.

i.e: Add Python 3.7 to PATH

Python installation provides below tools to execute python programs

Python REPL Tool(Python IDLE):Read Evaluate Print Loop