# Arup Guha
# 9/17/2020
# Example of a for loop running a variable number of times, based on
# what the user enters. Draws a regular n-gon, where n is entered by the user.

import turtle

# Get user input.
n = int(input("how many sides do you want?\n"))

# Repeat exactly n times.
for i in range(n):

    # Do 50 pixel sides.
    turtle.forward(50)

    # Must turn exatly many degrees.
    turtle.left(360/n)
