***********************************type the following source code into the file editorand save the file as zigzag pyimport timesys indent how many spaces to indent indentincreasing true whether the indentation is increasing or not trywhile truethe main program loop print(indentend=''print('********'time sleep( pause for / of second if indentincreasingincrease the number of spacesindent indent if indent = change directionindentincreasing false elsedecrease the number of spacesindent indent if indent = change directionindentincreasing true except keyboardinterruptsys exit(let' look at this code line by linestarting at the top import timesys indent how many spaces to indent indentincreasing true whether the indentation is increasing or not firstwe'll import the time and sys modules our program uses two variablesthe indent variable keeps track of how many spaces of indentation are before the band of eight asterisks and indentincreasing contains boolean value to determine if the amount of indentation is increasing or decreasing trywhile truethe main program loop print(indentend=''print('********'time sleep( pause for / of second functions