Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/35485993/archi...
https://codereview.stackexchange.com/questions/144...
Hello. I found this problem in the python course from MIPT. I’ll make a reservation right away, I started learning to code about a month ago.
There are 2 options - directly "drawing" the spiral with the turtle:
import turtle
turtle.shape('turtle')
k=1
fi_rad=0.1
fi_degr=fi_rad*(180/3.14)
for i in range (0,1000):
ro=k* fi_rad
turtle.forward(ro)
turtle.left(fi_degr)
fi_rad+=0.1
ro+=ro
or moving the turtle onto a spiral:
import turtle
turtle.shape('turtle')
import math
k=1
fi_rad=0.1
for i in range (0, 1000):
ro=k*fi_rad
x = math.cos(fi_rad)*ro
y = math.sin(fi_rad)*ro
turtle.goto
(x,y)
fi_rad+=0.1
it is the anguish that you experience when solving a problem - that makes you google your query, generates new neurons in your brain and makes you smarter.
To help https://ru.wikipedia.org/wiki/%D0%90%D1%80%D1%85%D...
All the information you need to solve is in the first 2 paragraphs.
Good luck.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question