for loop runs 5 times and hence calls the function say_hello() five times. Thus printing “Hello, World” 5 times.
def say_hello(): print ('Hello, World') for i in range(5): say_hello()