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

Function show_heading

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

Displays headings. Prints a heading. Underlines the heading.

(heading)

Source from the content-addressed store, hash-verified

25 raise bug
26
27def show_heading(heading):
28 '''Displays headings.
29
30 Prints a heading.
31 Underlines the heading.'''
32 print heading
33 underline = ''
34 for line in range(len(heading)):
35 underline += '-'
36 print underline
37
38def menu():
39 '''Handles menu.

Callers 5

mainFunction · 0.85
show_menuFunction · 0.85
create_keyFunction · 0.85
encode_fileFunction · 0.85
decode_fileFunction · 0.85

Calls 1

rangeFunction · 0.85

Tested by

no test coverage detected