<reponame>fmelihh/competitive-programming-solutions<gh_stars>1-10


# https://www.codewars.com/kata/576757b1df89ecf5bd00073b/train/python

def tower_builder(n_floors):


    times = 1
    space = ((2*n_floors -1) // 2)
    tower = []

    for _ in range(n_floors):

        tower.append((' '*space) + ('*' * times) + (' '*space))
        times += 2
        space -= 1

    return tower

# https://www.codewars.com/kata/576757b1df89ecf5bd00073b/train/python

def tower_builder(n_floors):


    times = 1
    space = ((2*n_floors -1) // 2)
    tower = []

    for _ in range(n_floors):

        tower.append((' '*space) + ('*' * times) + (' '*space))
        times += 2
        space -= 1

    return tower
# https://www.codewars.com/kata/576757b1df89ecf5bd00073b/train/python