1 Python Programming
1 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
( ) 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