Commit a4121b19 authored by root's avatar root

archivo en python

parent c6597d65
def do_twice(f):
f()
f()
def do_four(f):
do_twice(f)
do_twice(f)
def print_head():
print '+ - - - -',
def print_col():
print '| ',
def print_headers():
do_twice(print_head)
print '+'
def print_footers():
print_headers()
def print_cols():
do_twice(print_col)
print '|'
def print_row():
print_headers()
do_four(print_cols)
def print_grid():
do_twice(print_row)
print_footers()
print_grid()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment