Create a variable for the side length of an octagon, and ask the user to input a length (don’t forget the conversion)
Calculate a turn angle and store this in a variable. An octagon has eight sides, meaning you will have to turn your turtle eight times. Do some basic division to figure out by how many degrees your turtle will have to turn after each side.
Make the turtle draw the octagon using the side length variable and the angle variable. Note: This part will be very repetitive, but we will learn a way to avoid retyping the same commands in a few weeks
From this lab onward you will complete labs using the code windows built into the textbook, not in Idle. You are given some code to start with, do not edit these lines!
Below is a program similar to the type created in level 1 and 2: first a turtle draws a square, then the area of the square is printed out in the console. Objective: Convert this code into a generalized program that uses user input to set the length of the sides of the square. Use this input value to draw the square and to calculate and report the area of the square.