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

  • 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.

主站蜘蛛池模板: 丹东市| 尼木县| 怀仁县| 新沂市| 都兰县| 海伦市| 福鼎市| 万年县| 长寿区| 颍上县| 井冈山市| 菏泽市| 蒙城县| 顺义区| 铜鼓县| 古交市| 富川| 靖西县| 油尖旺区| 康保县| 辽源市| 涿鹿县| 辽阳县| 海盐县| 淳化县| 莫力| 兰西县| 灵山县| 曲靖市| 和平区| 噶尔县| 乐至县| 遵化市| 平阴县| 鄂托克前旗| 辽阳市| 齐齐哈尔市| 涞源县| 陆川县| 安义县| 攀枝花市|