Help me to produce a PYTHON interactive Menu and File I/O for…

Question Answered step-by-step Help me to produce a PYTHON interactive Menu and File I/O for… Help me to produce a PYTHON interactive Menu and File I/O for BinarySearchTreeI want to setup an interactive menu system to explore building a binary tree from scratch or from file, displaying the tree using each of traversals, saving it to a file and re- reading in those files to create new trees.Please include at least the following options:(a)  Read a .csv file(b)  Read a serialised file(c)  Display the tree – ask the user if they want inorder, preorder or postorder traver- sal(d)  Able to produce a .csv file – ask the user if they want inorder, preorder or postorder traver- sal(e)  produce a serialised fileWhat happens if I need to rebuild a tree using the output of different traversal methods? How to code this? ** Python programs please Engineering & Technology Computer Science CISY 1221 Share QuestionEmailCopy link Comments (0)