#!/usr/bin/python3

import time, sys

indent = 0 # how many spaces to indent
indentIncreasing = True  # wether indenting is enabled or not

try:
    while True: # main loop
        print(' ' * indent, end='')
        print('********')
        time.sleep(0.1) # pause for 1/10th of a second

        if indentIncreasing:
            # increase the number of spaces:
            indent = indent + 1
            if indent == 20:
                # change direction:
                indentIncreasing = False
        else:
            # decrease the number of spaces
            indent = indent - 1
            if indent == 0:
                # change direction:
                indentIncreasing = True
except KeyboardInterrupt:
    sys.exit()