def get_int(prompt):
    while True:
        try:
            value = int(input(prompt))
            if 1 <= value <= 8:
                return value
        except ValueError:
            pass  # or perhaps continue

def pyramids(height):
    for row in range(height):
        spaces = height - row - 1
        hashes = row + 1
        # conditional spaces
        if spaces:
            print(" " * spaces, end="")
        print("#" * hashes, end="")
        print("  ", end="")
        print("#" * hashes)  # no trailing spaces

def main():
    height = get_int("Height: ")
    pyramids(height)

#main()
for ht in range(1, 9):
    print("-" * 8, str(ht), "-" * 8)
    pyramids(ht)
# Prove a point
assert (" " * 0) == " "