ITP - loops & iterators - a simple loop

The simplest way to create a loop in Ruby is using the keyword loop.
loop takes a block, which is denoted by { ... } or do ... end. A loop
will execute any code within the block (again, that's just between the
{} or do ... end) until you maually intervene with Ctrl + c or insert a
break statement inside the block, which will force the loop to stop and
the exection will continue after the loop.

Let's try an example of a loop by creating a file named loop_example.rb

loop do
  puts "This will keep printing until you hit Ctrl + c"
end

Now we can run ruby loop_example.rb on the terminal and see what
happens.

You'll notice the same statement keeps printing on the terminal. You'll
have to interrupt with a Ctrl + c to stop it.