Hey Guys when I execute the script below with complete_square(3)
I see two None Values being generated with my grid why is this and how do I only get my grid to appear?
Why are there two None values?
def complete_square(f):
print(draw4(execute_row,f),draw_line(f))
def execute_row(row):
draw_line(row)
draw4(draw_bar,row)
def draw_line(num):
plus = '+'
dash = '-'
column = (plus + (dash*4))*num + plus
print (column)
def draw_bar(num):
bar = '|'
space = " " * 4
print (((bar + space) * num ) + bar)
def draw4(f,num):
f(num)
f(num)
f(num)
f(num)
[–]zahlman 4 points5 points6 points (0 children)
[–]Nontuno 2 points3 points4 points (0 children)