Pookkalam by Aparna.v

Code

c = circle(fill="red")
show(c)


def dot(x, y):
    
    c = circle(x=x, y=y, r=5, fill="blue")

    
    return c


d = dot(x=0, y=0)
show(d)

def dot(x, y):
    return circle(x=x, y=y, r=5, fill="pink")

def dotted_circle(x, y, r, dot_location):
    c = circle(x=x, y=y, r=r)

    if dot_location == "center":
        d = dot(x=x, y=y-r)
    elif dot_location == "top":
        d = dot(x=x, y=y+r)
    elif dot_location == "bottom":
        d = dot(x=x, y=y-r)
    else:
        print("dot_location" + dot_location)
        return c

    return c + d

c1 = dotted_circle(x=0, y=0, r=50, dot_location="center")
c2 = dotted_circle(x=0, y=75, r=25, dot_location="top")
c3 = dotted_circle(x=0, y=-75, r=25, dot_location="bottom")
c4 = dotted_circle(x=75, y=0, r=25, dot_location="right")
c5 = dotted_circle(x=-75, y=0, r=25, dot_location="left")
show(c1, c2, c3, c4, c5)
c1 = circle(x=50, y=50, r=50)