- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 52字
- 2025-04-04 19:20:06
Single assignment
Here, we will illustrate the use of the assignment operator (=) with an example:
city='London' # A string variable assignment.
money = 100.75 # A floating point number assignment
count=4 #An integer assignment
In this case, we assigned three different values to three variables using the = operator.