
== Loops

To write a for loop in python, you can use the following basic syntax:

[source,python]
fruits = ['apple', 'banana', 'cherry']
for fruit in fruits:
    print(fruit)

Running the above code results in the following output:

----
apple
banana
cherry
----

Conceptually, the loop moves like follows:

image::flow.png[]




