Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import Turtle
- luba=Turtle()
- r = float(input("Enter a radius of a circle: "))
- col=input("Add colour to your circle: ")
- x=int(input("Enter x_coordianate: "))
- y=int(input("Enter y_coordinate: "))
- def draw_circle(t_name,r,col,x,y):
- t_name.color(col)#assigning colour to a circle
- t_name.dot(r*2)#computation for diameter of a circle
- t_name.penup()
- t_name.goto(x,y)
- draw_circle(luba,r,col,x,y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement