Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- j=0
- g=1
- x=[1]
- y=[1]
- r=[1]
- while g<>0:
- x[j]=input()
- x=x+[x[j]]
- y[j]=input()
- y=y+[y[j]]
- r[j]=input()
- r=r+[r[j]]
- g=r[j]
- j=j+1
- if r[j]<0:
- print('error, r must be >0')
- import turtle
- max=y[0]
- for i in range(1,j+1):
- if y[i-1]>max:
- max=y[i-1]
- a=i-1
- for i in range(1,j+1):
- if a<>i:
- turtle.pencolor('green')
- turtle.penup()
- turtle.goto(x[i-1],y[i-1])
- turtle.pendown()
- turtle.circle(r[i-1])
- else:
- turtle.pencolor('red')
- turtle.penup()
- turtle.goto(x[i-1],y[i-1])
- turtle.pendown()
- turtle.circle(r[i-1])
- turtle.exitonclick()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement