Answer
Here's an example (provided in the step by step procedure) of a program that implements the functionality as described in the problem using the Tkinter library: (left click: adds ball, right click on ball: removes that ball)
Work Step by Step
import tkinter as tk
def add_point(event):
x, y = event.x, event.y
canvas.create_oval(x-10, y-10, x+10, y+10, fill="red")
def remove_point(event):
x, y = event.x, event.y
items = canvas.find_overlapping(x-10, y-10, x+10, y+10)
for item in items:
canvas.delete(item)
root = tk.Tk()
canvas = tk.Canvas(root, width=300, height=300)
canvas.pack()
canvas.bind("", add_point)
canvas.bind("", remove_point)
root.mainloop()