MCPcopy Create free account
hub / github.com/ActiveState/code / show_menu

Function show_menu

recipes/Python/456374_Crypt/recipe-456374.py:46–56  ·  view source on GitHub ↗

Displays menu. Shows the heading. Prints out all selections from the menu.

()

Source from the content-addressed store, hash-verified

44 return get_answer()
45
46def show_menu():
47 '''Displays menu.
48
49 Shows the heading.
50 Prints out all selections from the menu.'''
51 show_heading('MENU')
52 print '(1) Create Key'
53 print '(2) Encode File'
54 print '(3) Decode File'
55 print '(4) Exit Program'
56 print
57
58def get_answer():
59 '''Receives selection.

Callers 1

menuFunction · 0.85

Calls 1

show_headingFunction · 0.85

Tested by

no test coverage detected