Lazy Holiday 2021

When I am on vacation, I usually do a few things.

<read books><insert picture here>

<play music><insert picture here>

<watch movies><insert picture here>

✅ Grow a beard
# Write some code
def print_alpha_rangoli(size):
    alpha = [x for x in 'abcdefghijklmnopqrstuvwxyz'] 
    output = []
    display = []
    
    # determine the total width of the alphabet rangoli
    width = (size + (size - 1)) + ((size + (size - 1)) - 1)
    
    # for each of the letters in reverse order (starting inside out)
    for lin in range(size -1, -1, -1):
        design = []
        # build the individual line top down
        output.append(str(alpha[lin]))
        for int_lin in range(len(output) -1, -1, -1):
            design.append(output[int_lin])
            if int_lin != len(output) - 1:
                design.insert(0, output[int_lin])
        # pull the line together           
        display.append(('-'.join(design)).center(width, '-'))
    
    # built to the center, now reverse to the bottom
    for lin in range(len(display) -2, -1, -1):
        display.append(display[lin])
    
    print('\n'.join(display))
    
    
    
    
if __name__ == '__main__':
    while True:
        n = int(input('Please enter a number of letters between 2 and 26: '))
        if n < 2 or n > 26: 
            continue
        else:
            print_alpha_rangoli(n)
            break
Watch best friends roast by the fire.