MP 1 Arsd Lecture1
MP 1 Arsd Lecture1
10-Sept-2024
on
“Python Basics”
Mathematical Physics -1
By
Prof. Vinita Tuli
Prof. Anjali Kaushik
Shivnandi
Sneh
What is Python?
1. Python is a popular programming language. It
was created by Guido van Rossum, and
released in 1991.
2. It is used for:
1. web development (server-side),
2. software development,
3. mathematics,
4. system scripting.
3. What can Python do?
1. Python can be used on a server to create
web applications.
2. Python can be used alongside software to
create workflows.
3. Python can connect to database systems.
It can also read and modify files.
4. Python can be used to handle big data and
perform complex mathematics.
5. Python can be used for rapid prototyping,
or for production-ready software
development Ref: W3schools.com
What is Python?
import this
Ref: W3schools.com
import sys
print(sys.version)
Python as Calculator
➢ An arithmetic operation includes addition, subtraction, multiplication, division, or
powers between two numbers. An arithmetic operator is a symbol that Python has
reserved to mean one of the operations above. These symbols are + for addition, -
for subtraction, * for multiplication, / for division, and ** for exponential.
➢ TRY IT! 5 == 4
➢ TRY IT! 2 < 3
Logical operaters