def do_twice(f, value):
    f(value)
    f(value)


def print_twice(bruce):
    print(bruce)
    print(bruce)


do_twice(print_twice, 'spam')

9bcfc971cdce39c9b57c77a0e35364a885525a2d
<mask token>

<mask token>


def print_twice(bruce):
    print(bruce)
    print(bruce)


<mask token>

def do_twice(f, value):
    f(value)
    f(value)


def print_twice(bruce):
    print(bruce)
    print(bruce)


<mask token>

def do_twice(f, value):
    f(value)
    f(value)


def print_twice(bruce):
    print(bruce)
    print(bruce)


do_twice(print_twice, 'spam')
