Designer Door Mat

  • + 0 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)