1,234
edits
Changes
→Instructions
<source lang="python"></source>
=== Main Menu ===
Your program will be primarily menu-based instead of parameter-driven. That means the user will ask the program to do something after the program is already running, which is different from a typical command-line tool. When the program starts, it will present the user will the following menu:
<source>Reading log files... done.
Apache Log Analyser - Main Menu
===============================
1) Successful requests
2) Failed requests
q) Quit
</source>
The "Reading log files" message must display only once when your program starts, not every time the menu is displayed. You may find it easier to code this functionality after you're done writing the code for the menu itself.
Both option <b>1</b> and <b>2</b> will display a new menu.
the <b>q</b> option is self-explanatory.