If we want to print all values from a list one after the other, we can do the following:
This method is not efficient as the same code is repeated for every element in the list.
Instead we can use a for loop to do the same in a much more efficient way.