This does not show how to draw a line nor does it show how to create the figure. I leave that as an exercise for you to figure out.
One hint though - if you want 20 sides to the figure you would divide 360 by 20 and increment the angle by that much each time you draw a 'side'