Question: PythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPython It recognizes the list command and responds with a fixed message. It recognizes the exit command and exits the program if user confirms. For
PythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPythonPython


It recognizes the list command and responds with a fixed message. It recognizes the exit command and exits the program if user confirms. For all other inputs, it responds with a fixed error message. A sample session is given below. 2 1 >>> Hello, my name is Monty >>> What can I do for you? 3 4 list 5 >>> Nothing to list >>> What can I do for you? 6 7 8 foo 9 >>> OOPS! Unknown command 10 >>> What can I do for you? 11 12 exit 13 >>> Are you sure? y 14 n 15 >>> What can I do for you? 16 18 17 exit >>> Are you sure? y 19 y 20 >>> Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
