Learn Python in 7 Days
上QQ阅读APP看书,第一时间看更新

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.