PYTHON
•Python is a high-level, interpreted,
general-purpose, non-procedural, object-
oriented programming language.
•Created by Guido van Rossum and first
released in 1991.
•Known for its simple syntax, which makes it
easy to read, write, and learn.
•It is used to develop scientific software,
commercial software, AI based software,
Data science and Machine learning
software
Real-Time
Examples of
Python Use
•Instagram – Backend is built using Django
(Python framework).
•Google – Uses Python for system building, scripts, and
AI work.
•Netflix – Uses Python for automation, data analysis,
and recommendation systems.
•Spotify – Uses Python for backend services and
data analytics.
•NASA – Uses Python in its data processing and
scientific computations.
•YouTube – Some parts of YouTube’s backend are written
in Python.
VARIABLES
A variable is a name that refers to a value stored in
the computer’s memory.
•Think of a variable as a container or label used to
store data.
•You can use that name to access, modify, or use
the data later.
•No need to declare data type — Python automatically
detects the type.
•Use = to assign a value to a variable.
•Variable names are case-sensitive (Age and age are
different).
•Can store numbers, text, lists, etc.
HOW VARIABLES WORKS IN PYTHON
For example-
A= 10
This means that A is pointing to a value stored in memory at a
fixed location.
Later on Suppose A = A + 5 this mean that the memory cell
value has not changed from 10 to 15 but it means that A is
now pointing to another cell with the value 15 at different
location.
Conclusion:
When the value changes address of the previous data does no
change but now A will be pointing to a new cell with the new
data.
HOW VARIABLES WORKS IN PYTHON
For example-
A= 10
This means that A is pointing to a value stored in memory at a
fixed location.
Later on Suppose A = A + 5 this mean that the memory cell
value has not changed from 10 to 15 but it means that A is
now pointing to another cell with the value 15 at different
location.
Conclusion:
When the value changes address of the previous data does no
change but now A will be pointing to a new cell with the new
data.