Introduction
The repeat function helps you run the same code multiple times easily without writing a loop manually.
When you want to print a message several times.
When you need to perform a task repeatedly, like retrying a connection.
When you want to fill a list or array with repeated values.
When you want to run a block of code a fixed number of times for testing.