# -*- coding: utf-8 -*- import math import turtle as tt win = tt.Screen() ###### tt.setup(0.35, 0.35) tt.shape("classic") tt.pencolor("blue") tt.bgcolor('lightblue') tt.pensize(5) tt.speed(0) dis = math.sqrt(math.pow((101-18),2) + math.pow((101-25),2)) tt.pu() tt.goto(17,35) tan = (101-25)/(101-18) d = math.atan(tan) tt.pd() tt.left(d*180/math.pi) tt.fd(dis) tt.left(90) tt.circle(dis) dis = dis + math.pi*math.pow(dis,2) tt.write("dis = " + str(dis)) ###### win.exitonclick()