Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- from turtle import *
- w = 600
- h = 600
- s = turtle.Screen()
- #Блок ниже не изменять: ===================
- s.setup(w,h, 0,200) #
- s.setworldcoordinates(0, h, w, 0) #
- s.bgcolor('grey')
- s.title('Our Screen')
- #Конец блока ============================
- speed(0)
- a = 200
- e = 90
- l = 90
- width(5)
- for i in range(2):
- up()
- goto(a,0)
- lt(e)
- down()
- fd(600)
- a = 400
- e = 0
- a = 200
- up()
- goto(0,a)
- a = 400
- down()
- rt(l)
- fd(600)
- up()
- goto(0,a)
- down()
- l = 0
- fd(600)
- xo = int(input("Enter number 1: "))
- yo = int(input("Enter number 2: "))
- xx = int(input("Enter number 3: "))
- yx = int(input("Enter number 4: "))
- up()
- goto(xo,yo)
- down()
- circle(60)
- up()
- goto(xx,yx)
- down()
- lt(120)
- fd(100)
- lt(180)
- fd(50)
- lt(120)
- fd(50)
- back(100)
- ht()
- done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement