# dotwice.py  20081002  jim@well.com 
# chapter 3 exercise 4 

print "\n\nstarting dotwice.py\n\n" 

def do_twice(f, it):
    f(it) 
    f(it) 

def p_it(x): 
    print x 

do_twice(p_it, "pooh!") 

print "\n\n" 

def print_two(um): 
    print um, um, "\n"

print_two("fooey, this is kind of boring! ")

print "\n\nEndOfProgram\n" 

