Learning in this Course
Concept of Computer Programming Language
Introduction of Python
Features of Python Language
Installing Python on your Computer /Mobile
Working Modes of Python
Keywords, Variables, Data Types , type() Function , input() Function, Operators .
Python
PYTHON
“Python is a word which holds the whole”
Python
Python Website : www.python.org
Python for Windows/Mac : Python 3.11.3 (IDLE module by default for windows)
Python Editor : IDLE/ Visual Studio Code / Pycharm / Jupyter Notebook
Python for Android : QPython3L
Python
What is Python?
Python is a popular computer programming language.
Python was created By Guido Van Rossum in February 1991.
Concept of Computer Programming Language
How Computer Works?
What is Computer Program?
What is Computer Programming Language ?
How Computer Works?
Take an example of any task that you perform in your daily life
What is Computer Program?
Please tell me the way to go for KFC from here ? *
You have used English/Hindi Language to give several steps to be taken to reach KFC. If they are
followed in the following sequence,, then he will reach KFC −
1. Go straight
2. Drive half kilometer
3. Take right
4. Drive around one kilometer
5. Search for KFC at your left side
Final destination KFC
The above sequence of instructions is actually a Human Program written in English Language, which
instructs on how to reach KFC. The same sequence could have been given in Spanish, Hindi, Arabic or
any other human language for different regions.
Similarly we can write a computer program instruction in different computer language. **
Language
Language :- We can easily communicate with the help of the language.
English, Hindi, Gujarati, Malayalam , Punjabi, Urdu, Farsi, Chinese etc.
Low level language :-
Computer(Machine) Language :- Computer understand only 0 and 1,
which is called machine language or binary Language. For example :- A switch has only two
modes ON/OFF True/False or 1/0.
High Level Language :-
Note :- we are not able to talk or write steps in binary language (low level language) for
computer to give the instructions so we are using another computer language for our
convenience which is similar to English language like C, C++, Java , Python are called high
level languages.
Programming
Programming :- Programming is the process of creating a set of instructions
by the programmer in computer language that tell a computer how to
perform a task.
Note :- The driver gives several instructions to the car, e.g. Accelerator,
Brake, Clutch, Horn, etc., in order to run it.
What is Programming Language?
An instructions written by the user in computer programming language for
computer is called computer programming language.
Example :- Machine, Assembly, Basic, Pascal, Cobol, C, C++, Java, Python etc.
Note :- during the late 1970 and 80’s pascal was most famous computer
programming language for instructions.
Now a days Java and Python are the most famous languages.
Following is a simple program written in Python programming Language −
print ("Hello”)
The above computer program instructs the computer to print "Hello" on the computer
screen..
IDLE Shell (command prompt) for windows python
IDLE full form - Integrated Development and Learning
Environment
POPULARITY
If you are a non-programmer, Python could be your starting point as it is on
the top of the top programming languages of the 2023 list and is also the
easiest to learn.
-Python 29.72
20% -Java 19.03
10%
1%
2005 2010 2015
According to the PYPL Index, Python is the most popular programming language
Introduction
Python was created By Guido Van Rossum in February 1991.
The word python is taken from a comedy series of BBC “ Monty
Python Flying Circus”. *
Python is general purpose, dynamic, high level, interpreted
programming language used to write codes for the computer
programs. ** Guido Van Rossum
(age 67 years)
It is a platform independent programming language which means
you can used it in any machine and any operating System.
Introduction
Python is based on or influenced with two programming languages.
1. ABC Language – Which was an optional language of Basic.
2. Modula 3
Python is known as multipurpose language because it can be used in web, enterprise, 3D
CAD etc. *
It is free to use and even free for commercial products. It is used by famous companies
like Google, You tube, Instagram etc.
Introduction
Python2 Vs Python 3
Most of the programming languages supports the features and syntax of lower version
but python is not backward compatible ( python2 programs not run in python3). python2
and python3 are very much different from each other.
Python2 uses print as a statement :- print “something”
Python3 uses print as a function : - print(“something”)
In python2 the implicit string type is ASCII. (American standard code for Information Interchange)
In python3 the implicit string type is UNICODE. (Universal character set)
Introduction
Introduction
ASCII Code (American standard code for Information Interchange)
• A character encoding standard for electronics communication.
• Supports 128 characters.
• Uses 7 bit or 8 bit to represent a character.
• Requires less space
UNICODE (Universal character set)
• A computer industry standard for consistent encoding, representation and handling of
text expressed in most of the word’s writing system.
• Supports a wide range of characters.
• Uses 8 bit, 16 bit or 32 bit depending on encoding type.
• Requires more space.
more …….
Features of Python Language
HDFC GRIPE
1. High level language.
2. Dynamic language.
3. Free and Open source.
4. Case sensitive.
5. General Purpose.
6. Rich in library function.
7. Integrated and Interpretated.
8. Platform Independent.
9. Expressive and Extensible language.
Features of Python Language
1. Python is high level language because “ It is easy for humans to understand and the
coding is also quite easy ” Python has a simple syntax :- for print sum of two numbers it
acts as calculator.
For ex :- >>> 2+2
>>> 4
2. Python is a dynamically typed language which means checking of the type of variable
is done at the runtime. We don’t need to declare type of the variable in the program.
3. Python is freely available at official web address. The source code is also available
therefore its open source.
4. Python is case sensitive :- Capital letters and small letters are not considered as same.
For ex :- India , india, INDIA, InDiA all are treat as different in python.
Features of Python Language
5. Python is general purpose programming language. It can be used for designing
console app, Desktop applications, Mobile applications, Machine learning, Robotics and
performing scientific computing, Build a website. *
6. Python has large and broad library and provide rich set of module and functions for
rapid application development.
7. Python is Interpreted means it execute the code line by line. It can be easily integrated
with language like C, C++, Java etc.
8. Python is platform independent means python can run equally on different platforms
such as windows, Linux, Unix, Macintosh, Android etc.
9. Python is expressive means understandable and Python code can also be written in
other languages like C++, making it a highly extensible language..
Features of Python Language
Python is also
object oriented programming language
like C++ and Java.
Use of Python Language
It can be used for
Designing Console App,
Desktop Applications,
Mobile Applications,
Machine Learning, Robotics
Performing Scientific Computing,
Build a Website, etc.
Working Modes of Python
After installing Python in Computer/Mobile, You can ready to work in Python in two ways:
1.Interactive mode
2.Script Mode
In Interactive mode of Python, the In Script mode of Python, the Script mode is
instructions are executed line by line giving used when the user is working with more than
the output. In this mode, the commands one single code or a block of code. In this
are typed next to the Python Command method programmer write a programs in Visual
prompt (>>>). For example, if you type Studio code/notepad in windows or editor in
next to the Python Prompt, it will give you mobile after that save that file by given a name
>>3*6 with extension py. For example Program1.py
>>>18 Now it can be run by press the run module in
the result as 18 after press the enter key. IDLE or play button in editor of mobile. **
Working Modes of Python
After installing Python in Computer/Mobile, You can ready to work in Python in two ways:
1.Interactive mode
2.Script Mode