the_count =[1,2,3,4,5]
for number in the_count:
print(f"This is count:{number}")
fruits = ['apples','oranges','pears','apricots']
for fruit in fruits:
print(f"A fruit of type:{fruit}")
change = [1,'pennies',2,'dimes',3,'quarters']
for i in change:
print(f"I got {i}")
elements = []
for i in range(0,6):
elements.append(i)
for i in elements:
print(f"Element was :{i}")
在powershell 里面运行python的for循环。我正在从learn python3 the hard way学习python 代码