📜  步入for循环python代码示例

📅  最后修改于: 2022-03-11 14:46:02.238000             🧑  作者: Mango

代码示例3
# python for loop
#Range
for num in range(1,100+1):
    print(num)
#step in range
for num in range(1,50,2):
    print(num)
#Itration on lists
Countries = ["US","Russia","France","India","Japan"]
for country in Countries:
    print(country)