for variable name in iterable object:
processing
Like foreach statements in other languages, Python for statements are processed by assigning object elements such as lists (arrays) to variables in order.
fruits = ['Apple', 'Berry', 'Orange']
for Kudamono in fruits:
print(Kudamono)
# Apple
# Berry
# Orange
Engineer career change reference site
Recommended Posts