We want to add a verbose mode to Tortoise. This would print out the name of the program, and the length of the program before executing it. For instance:
python tortoise.py --verbose tiny.tortoise
Executing tiny.tortoise, 3 commands found.
1. PEN 3
2. PEN UP
3. PEN DOWN
The program executes as normal after printing the header line. Another example:
python tortoise.py medium.tortoise --verbose
Executing medium.tortoise, 6 commands found.
--- normal output here ---
If the verbose flag is not given, it should default to False.
We want to add a verbose mode to Tortoise. This would print out the name of the program, and the length of the program before executing it. For instance:
The program executes as normal after printing the header line. Another example:
If the verbose flag is not given, it should default to False.
This is probably the time to look at something like the argparse module