Python wallet with GUI

I am doing some simple projects in an attempt to be good at programming, this is my first GUI I would love to receive some comments and some guidelines.

from tkinter import *
import randomly

root = Tk ()
root.resizable (False, False)

root.title (& # 39; Coinflipper & # 39;)

topframe = Frame (root)
topframe.pack ()
botframe = Marco (root)
botframe.pack (side = BOTTOM)
midframe = Frame (root)
midframe.pack ()

choice = Label (top frame, text = "Enter the number of laps:")
choice.grid (row = 1)
ent = Input (top frame)
ent.grid (row = 1, column = 2)

clickit = Button (botframe, text = "FLIP THE COIN !!!")
clickit.pack ()

out = Text (middle frame, width = 15, height = 1)
out2 = Text (middle frame, width = 15, height = 1)
out.grid (row = 1, column = 1, columnpan = 3)
out2.grid (row = 2, column = 1, columnpan = 3)


def flipy (event):
guess = ent.get ()
heads = []
    tails = []

    if you guess == & # 39; & # 39; or guess == str (guess):
out.delete (1.0, "end-1c")
out.insert ("end-1c", & # 39; Invalid & # 39;)

to turn in range (int (conjecture)):
out.delete (1.0, "end-1c")
out2.delete (1.0, "end-1c")
random_number = random.randint (1, 2)
if random_number == 1:
heads.append ("Heads")
elif random_number == 2:
tails.append ("Tails")

out.insert ("end-1c", len (queues))
out.insert ("end-1c", "-TAILS")
out2.insert ("end-1c", len (heads))
out2.insert ("end-1c", "-HEADS")


clickit.bind ("", flipy)

root.mainloop ()