'''lecture_06_hexagon_loops.py Draws a hexagon and n-gon with loops Oliver W. Layton CS 151 Fall 2020 ''' import turtle def hexagon(sideLength): '''Draws a hexagon shape. Parameters: ----------- sideLength: int. length of each edge ''' pass def ngon(sideLength, nSides): '''Draws an n-sided polygon Parameters: ----------- sideLength: int. length of each side. nSides: int. Total number of sides in the ngon ''' pass # Main code setup # Speed up drawing turtle.speed(0) # Draw the hexagon with sides 100 pixels long hexagon(100) # Draw an n-gon # ngon(50, 4) # Keep the hexagon up until the user clicks on the window turtle.exitonclick()