we have to import the menu class from tkinter add the following line of code to the top of the python modulewhere the import statement live as shown below in pseudocode nextwe will create the menu baradd the following code towards the bottom of the modulejust above where we create the main event loop in order to make above code in workable conditionwe also have to add the menu bar and give it label fig menu item with file option nextwe will add second menu item to the first menu that we added to the menu bar