The assignment statement creates new variables and then corresponding values can be assigned to it.
Assignment
Statement
•
The assignment statement creates new
variables and then corresponding values can be assigned to it.
•
We can use assignment operator = to assign values to variables. Any type of
value can be assigned to a valid variable.
•
For example:
In [7]:
////Three variables are assigned with different values
a = 10
b = 20
c = 'Light'
print(a)
print(b)
print(c)
10
20
Light

•
It is possible to have multiple assignments to
different variables. For example:
a,b,c=100,
11.11, "Energy"
print(a)
100
print(b)
11.11
print(c)
Energy
Python for Data Science: Chapter 1: Basics of Python : Tag: Computer Programming, Python, Data Science : - Python Assignment Statement
Python for Data Science
AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation
English Essentials II
EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Tamils and Technology தமிழர்களும் தொழில்நுட்பமும்
UC25H02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Linear Algebra
MA25C02 2nd Semester | 2025 Regulation
Applied Physics (CSIE) II
PH25C03 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Digital Principles and Computer Organization
CS25C06 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Basic Electrical and Electronics Engineering
EE25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Python for Data Science
AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation
Re-Engineering for Innovation
ME25C05 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation
Python for Data Science - Laboratory
AD25201 2nd Semester AIDS Dept | 2025 Regulation | 2nd Semester 2025 Regulation