#def write_repeat (message, n):
#    for i in range (n):
#        print (message)
#write_repeat ("Hello", 5)


def hof_write_repeat (message, n, action):
    for i in range (n):
        action (message)
hof_write_repeat ("Hello", 5, print)

# Import the logging library
import logging

# Log the output as an error instead
hof_write_repeat ("hello", 5, logging.error)
d92351e74f1a7c36f11612e0a9fd7fb07a5b31ac
<mask token>

def hof_write_repeat(message, n, action):
    for i in range(n):
        action(message)


<mask token>

def hof_write_repeat(message, n, action):
    for i in range(n):
        action(message)


hof_write_repeat('Hello', 5, print)
<mask token>
hof_write_repeat('hello', 5, logging.error)

def hof_write_repeat(message, n, action):
    for i in range(n):
        action(message)


hof_write_repeat('Hello', 5, print)
import logging
hof_write_repeat('hello', 5, logging.error)

#def write_repeat (message, n):
#    for i in range (n):
#        print (message)
#write_repeat ("Hello", 5)


def hof_write_repeat (message, n, action):
    for i in range (n):
        action (message)
hof_write_repeat ("Hello", 5, print)

# Import the logging library
import logging

# Log the output as an error instead
hof_write_repeat ("hello", 5, logging.error)