In Python array handling can be accomplished by using Python’s built in list comprehension. This means when we are working with arrays we need to change the way we use the for loop depending on whether we are interested in the value or the position of the value.
In the code above the first for loop is simply printing the value from the list. The second loop knows the position of each item and can therefore display that information as well.