Task

Write a procedure which accepts as arguments another procedure and a positive integer.

The latter procedure is executed a number of times equal to the accepted integer.




#!/usr/bin/python
def repeat(f,n):
  for i in range(n):
    f();
 
def procedure():
  print("Example");
 
repeat(procedure,3); #prints "Example" (without quotes) three times, separated by newlines.