# for var_name in object:
# code...
# var_name is defined as any name, object is any iterator
# dict.keys() will return all the keys
# dict.value() will return all the values
# dict.items() will return all the items
# for key, value in dict.items():
# code...
# range() will get a integer sequence
# range(1,10,2) , 1- the start, 10- the end, not included, 2- the step length
list1 = ["你", "好", "吗", "兄", "弟"]
for a in list1:
print(a)
for i in range(len(list1)):
print(list1[i])
# while condition:
# code...
list1 = ["你", "好", "吗", "兄", "弟"]
i = 0
while i < len(list1):
print(list1[i])
i += 1