0% found this document useful (0 votes)
13 views19 pages

1 Python Programming

Uploaded by

Rudraaksh Sethi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views19 pages

1 Python Programming

Uploaded by

Rudraaksh Sethi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Python Programming:

An Introduction
Introduction
▪ IDLE- An Interpreter for Python
▪ Python Strings
▪ Arithmetic Operators
▪ Relational Operators
▪ Logical Operators
Python
▪ Python is an interactive programming language
▪ Python was developed by Guido Van Rossum in 1991
at the National Research Institute for Mathematics
and Computer Science in the Netherlands.
▪ Application Areas- web, gaming, scientific ,numeric
computing and network programming.
Python software
▪ Python software can be downloaded from
▪ https://www.python.org/ftp/python/3.9.1/python-3.9.1-amd64.exe
▪ Other softwares- Jupyter Notebook, Spyder

▪ Online Python Interpreter


▪ Google colab -https://colab.research.google.com/#create=true
▪ https://www.programiz.com/python-programming/online-
compiler/
▪ https://www.jdoodle.com/python3-programming-online/
IDLE-An Interpreter for Python
▪ IDLE- Integrated
Development and
Learning Environment
▪ It comprises of Python
Shell and Python Editor
▪ We can also type python
code in Shell
Python Strings
▪ A String is a sequence of characters. To specify a string we may enclose a sequence of
characters between single, double or triple quotes.
Arithmetic Operators
Precedence of arithmetic Operators

( ) Parentheses
** (Exponential) Decreasing
- (negation) order
/ (division) //(integer division) * (multiplication) %
modulus
+ addition -(subtraction)
Relational Operators
▪ Used for comparing two expressions
▪ It yields True or False
Relational Operators in Python

== (equal to)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
!= (not equal to)
Logical Operators
▪ Not
▪ And
▪ Or
Precedence of Logical Operators
▪ Not
Decreasing
▪ And Order
▪ Or

You might also like