官术网_书友最值得收藏!

  • Learn Python in 7 Days
  • Mohit Bhaskar N. Das
  • 52字
  • 2021-07-09 20:40:23

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.

主站蜘蛛池模板: 仪征市| 措勤县| 陇西县| 大化| 成安县| 共和县| 罗源县| 天水市| 保德县| 沅陵县| 平泉县| 疏勒县| 鱼台县| 定西市| 绍兴市| 玛沁县| 海城市| 徐水县| 察雅县| 富裕县| 保康县| 庆阳市| 北宁市| 礼泉县| 正定县| 宁国市| 绿春县| 青铜峡市| 齐齐哈尔市| 伊宁县| 新丰县| 丽水市| 青冈县| 金门县| 达拉特旗| 嘉定区| 拉孜县| 寻乌县| 永年县| 大港区| 延川县|