Sample automation for my moms store

def mainmenu : print(" 1.add an item") print("2.record bought item") print("3.i am done") selection=int(input("what do you want to do 1,2 or 3:") ) if selection==1: whichitem elif selection==2: whichitem elif selection==3: exit else: print("Invalid choice") mainmenu def whichitem: print("1.paints") print("2.metallic items") selection=int(input("what do you want to  1or2 :") ) if selection==1 print("item added") elif selection==2 print("item added")