Day5

Day5,第1张

Day5 For loop with list

sum( ) to calculate the total figures of the list

for loop will run any times the number of the item 

有时候我们只需要它赋值次数罢了。

= assign

== check

For loop independently used using for loop in range function
for number in range(1,10):
   print(number)
range(a,b)不包括b 中间的间隔用range(1,10,2)

How to join strings together randomly in python?​ ​                      ​​​​​list - Joining Strings Together Randomly in Python - Stack Overflowhttps://stackoverflow.com/questions/48650477/joining-strings-together-randomly-in-python

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4681023.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-07
下一篇 2022-11-07

发表评论

登录后才能评论

评论列表(0条)

保存