Python: Python is a general-purpose high-level programming language. Here high level means it is user friendly or programmer-friendly langu...
Python:
Python is a general-purpose high-level programming language.
Here high level means it is user friendly or programmer-friendly language, not a machine friendly. This means the Programmer does not need any coding language.
NOTE: Father of python is GUIDO VAN ROSSUM. He developed the python language in 1989 and made it public to available in 1991.
Why Name Python: He was a fan of a comedy show " The complete Monty python's circle ." so he took name Python.
Python is All-Rounder: what does it mean?
C language is a functional language
C++, JAVA is an object-oriented programming language
Perrl, Shell script is a scripting language.
But python supports all languages, all right Now we will see from who python borrowed which language,
- Functional language from C
- OOPS from C++ ( JAVA developed in 1995)
- script language from perrl
- Modular PL from Modula-3.
Uses Of python:
- Desktop Applications; ex. calculator development
- Web applications: ex- G-mail, E-commerce ( zomoto is developed on python)
- Network Applications; like chatting applications
- Games
- Data Science, Machine Learning
- ML, AI, IoT, Neural networks etc.
Users of Python:
- Google( youtube)
- yahoo
- Netflix
- NASA etc
Features of Python;
- Easy to use: It means No pre-knowledge required to learn python
- Freeware and open-source: Freeware means it is available free of cost. Open source means there anyone can use it with their name.
- High-Level PL: means it is programmer-friendly, not machine friendly, that means do not require many codes.
- Platform Independent: It means we can run the same programme on Windows, Linux or mac
- Portability: one programme can be migrated from one platform to another.
- Dynamically typed
- Both procedure-oriented and object-oriented
- Interpreted
- Extensible: we can programme in C or C++ or JAVA
- Embedded: This means we can use python programmes in other languages.
- Extensive Libraries
Limitations of python:
1. mobile applications development: python is not suitable for mobile applications developments because the library is not available
2. Extensive applications: for example Banking applications, Telecom applications etc.,
3. Performance is poor: ' Just in time' and python virtual machine is used as a flavour for speed.
Python Identifiers :
Identifiers are just named for example class, variables etc.
Rules for identifiers :
1. only words are allowed, special character are not allowed for example:
cash=20 allowed
cas&h= 20 not allowed
2. Identifiers should not start with a digit
ex; 345total= 20 , not allowed
total345= 20, allowed
3. No length limit but not recommended too length; ex aaaaaaaaasssssssssssssjjjjjjjjjjjjjjjjkkkkkkkkkkkkk=20 allowed but not recommended
4 We can not use keywords as identifiers: There are 33 reserved words
Reserved words or keywords:
The words which are reserved to represent some functionality is called...
There is 33 reserved word :
- True
- False
- None
- and
- or
- not
- is
- If
- elif
- else
- while
- for
- break
- continue
- in
- yield
- try
- except
- finally
- raise
- assert
- Import
- from
- as
- class
- def
- pass
- global
- nonlocal
- lemda
- del
- with
good material
ReplyDelete