CS101 Assignment 1

Due Thursday, September 12 by the end of the day

CS101 isn't really a programming class, so for this assignment, you get to start with the program, and adjust it as you like.
import turtle as t
from math import *
t.speed(0)

for i in range(0, 360, 1):
  angle = i/10.0
  x = cos(angle)
  y = sin(angle)
  lx = cos(angle - .1)
  ly = sin(angle - .1)
  r = angle
  t.penup()
  t.goto(r * lx, r * ly)
  t.pendown()
  t.goto(r * x, r * y)
		
Cut and paste the above program into the Python interpreter at this website: https://trinket.io/python. Alternatively, feel free to use any other python interpreter, including IDLE. Observe that running it creates a small and uninteresting spiral. As an example of changing things, reverse the "sin" and "cos" on the lines where lx and ly (last x and last y) are set, like this:
	lx = sin(angle - .1)
	ly = cos(angle - .1) 
		
Put these back, and change the 360 in the for loop (line 5 if you past exactly as above) to something higher, perhaps 1000. The spiral should be larger. Next, try changing the color. Add this statement to fill in the empty line 4:
t.color(100, 0, 250)
		
Make minor changes in the program until it produces output that seems pleasing to you. Make and observe the result of at least 5 changes. Once finished, turn in your code on Canvas.