Create a new pop up window in Tkinter python program

Create a new pop-up window in the Tkinter python program. This program will create a new pop-up window and deliver a message to user in GUI Tkinter python program.

from tkinter import *
from tkinter import ttk
def popup():
info = Toplevel()
info.title('Inlarn.com')
Button(info, text='Close', command=info.destroy).pack(padx=10, pady=10)
info.transient(pack)
info.grab_set()
pack.wait_window(info)
pack = Tk()
pack.title('Main window')
pack.geometry('400x200')
Button(pack, text='Open popup', command=popup).pack(padx=10, pady=10)
pack.mainloop()