Problem is :- "Convert the OS based program into a menu driven program using Python Code which will execute the required user query when user will give the input as a text."
PS:don't case can be combined in one line like ("don't" in t) to reduce size of program