A loop is a concept where something continues endlessly until it is asked to stop. Just like the sun rises in the east and sets in the west is a loop that continues endlessly.
In Ruby we can use the loop concept to print a block of code multiple times.
There are three ways by which we can define a loop in Ruby :
Ruby would be using a concept of loops to print the numbers from 1 to 10.
Let us see it in the next tutorial.