from tkinter import *
root = Tk()

canvassize = 300
canvas = Canvas(root, width = 300, height = 300)
canvas.pack()
def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize // 2 - size // 2, canvassize//2 + size //2, canvassize//2 + size //2, fill="black")

rectangling(50)

root.mainloop()

96e0b86fc5802e8d587ffdb517e993a2fc7bac6d
<mask token>


def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize //
        2 - size // 2, canvassize // 2 + size // 2, canvassize // 2 + size //
        2, fill='black')


<mask token>

<mask token>
canvas.pack()


def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize //
        2 - size // 2, canvassize // 2 + size // 2, canvassize // 2 + size //
        2, fill='black')


rectangling(50)
root.mainloop()

<mask token>
root = Tk()
canvassize = 300
canvas = Canvas(root, width=300, height=300)
canvas.pack()


def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize //
        2 - size // 2, canvassize // 2 + size // 2, canvassize // 2 + size //
        2, fill='black')


rectangling(50)
root.mainloop()

from tkinter import *
root = Tk()
canvassize = 300
canvas = Canvas(root, width=300, height=300)
canvas.pack()


def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize //
        2 - size // 2, canvassize // 2 + size // 2, canvassize // 2 + size //
        2, fill='black')


rectangling(50)
root.mainloop()

from tkinter import *
root = Tk()

canvassize = 300
canvas = Canvas(root, width = 300, height = 300)
canvas.pack()
def rectangling(size):
    return canvas.create_rectangle(canvassize // 2 - size // 2, canvassize // 2 - size // 2, canvassize//2 + size //2, canvassize//2 + size //2, fill="black")

rectangling(50)

root.mainloop()
