AshwaDip Tutorials

  1. Intro

Python Introduction
The most easy programming language.You can start learning it as your fist programming language.
Python is general purpose high level programming language. You can develope any type of application in python.
i.e Web application, datascience application,machinge learning,desktop application,robotics,artificial intelligence.

Father of python is guido van rossum in 1989 at National Reasearch institute at netharland. The officially python available
for all in Februay 28, 1991.

C and JAVA are statically typed language. Such terminology is not used in python.
Based on provided value the data type is assined in python. Python is dynamically typed language.

Functional programming features borrwed from C language.
Oops from C++
Scripting Features borrowed from perl and schell
Modular programming features from Modula-3
Syntax from C and ABC language.
NOTE: for mobile based application python is not compatible.


Features of Python
1. Simple and Easy:
Length of the code is less compared to other languages. Hense readability increase improved so we can reduce time and cost of project.
Keywords in python 30, java 53.
2. Python freeware and Open source: Freeware means free of cost. Open source means you can customize the python as per requirement.
3. Hign level programming language:
4. Platform independent: its WORA language.
5. Portability: Migrating runnung program in any platform os is called portability.
6. Dynamically Typed: Based on input type the data type is dynamically changed.
7. Both Procedure oriented and object oriented
8. Interpreted: Python interpreter is compile the program. No need to compile like java.
9. Extensible: We can merge some other languages code in python. But after that we lost platform independent feature.
10.Embeded: We can user python code, program in other language. is called interoperability.
11. Extensive Library: Readymade functions are already available in python.

Limitation of Python
1. Performance: It is interpreted language. So performance is issue.
2. Mobile Application: Not upto the mark in mobile application.
Python is not pure object oriented programming language.

Flavours of Python
1. CPython
2. JPython
3. IronPython
4. Pypy
5. RubyPython
6. AnacondaPython
7. Stackless (Python for concurrency)

Python Versions
Python 1.0 introduced in 1994
Python 2.0 introduced in October 2000
Python 3.0 introduced in 2008
Note : Python is exceptional language for backward compability
mode. Because of this feature python is growing rapidly.
example print"Hellow" (python-2) print("Hellow") (Python-3)
Recomended version is Python-3.

Identifiers and Rules to Defiene Identifiers
Variable name, Class name or method name are identifiers.

Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore _ .
An identifier cannot start with a digit.
Keywords cannot be used as identifiers.
We cannot use special symbols like !, @, #, $, % etc.
An identifier can be of any length.
Note:Python identifier are case sensitive language.
_x==>private identifier
__x==>strongly private identifier
_x_==>Language specific identifier

Reserved Keywords (Python 3.6) Total 33.
False def if raise
None del import return
True elif in try
and else is while
as except lambda with
assert finally nonlocal yield
break for not
class from or
continue global pass
NOTE: Only alphabet sysmbols used in keywords.
Except True, False,None all remaining are in lower case.
NOTE: keyword.kwlist

Data Type (Built-in) Total 14.
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
NOTE: Size and Range concept is not applicable in python. Because python treated everthing as object not as prematative like other.

Inbuilt Function
NOTE: In python everthing is object