1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Julia

Connected

Exercise

Loop over a vector

In the video, you saw how a for loop can be used to easily and efficiently iterate over an iterable structure. In this example, let's practice this by iterating over a vector using a for loop to print all the elements of that vector to the console.

Instructions

100 XP
  • Write a for loop to iterate over the vector stock_tickers, printing each element of the vector on a new line.