# S I M P L E M E N U O U T P U T # Keith Dites # 22 September 2016 # Department of Computer Science # The University of Liverpool # Sequence I/O strings to produce menu comprised of five items on screen # Note usage of tab escape sequence print ("Main Menu") print ("---------") print ("D:\tDivision") print ("M:\tMultiplication") print ("A:\tAddition") print ("S:\tSubtraction") print ("X:\tExit") # Blank line print() # Input, prompt user for input and store input into string variable 'option' # Input command halts execution until user presses return key option = input ("Enter an Option:\t") # Another blank line print() # Output, echo selected option back to user. # Note usage of return escape sequenceX # Comma outputs space between message and variable print ("You selected option was:\t",option,"\n")