You are viewing a single comment's thread. Return to all comments →
input_list = list(map(int, input().split())) center_design = math.floor(input_list[0] / 2) def print_top_design(): for loop_index in range(center_design): i = 2 * loop_index + 1 mid_design = '.|.' design = (mid_design*i).center(input_list[1], '-') print(design) def print_bot_design(): for loop_index in range(center_design - 1, -1, -1): i = 2 * loop_index + 1 mid_design = '.|.' design = (mid_design*i).center(input_list[1], '-') print(design)
Seems like cookies are disabled on this browser, please enable them to open this website
Designer Door Mat
You are viewing a single comment's thread. Return to all comments →