Sign in to access Teach Me mode
Sign in to ask questions
Copy as MarkdownCtrl+⇧+C
Chapter 65 Quiz
Before taking the quiz, verify that you can do each of these without looking at the lessons:
- Predict what
sys.argvcontains for a given command - Create an
argparseparser with positional and optional arguments - Set up subcommands with
add_subparsersand dispatch withset_defaults - Use
sys.exit()andsys.stderrto report errors properly - Read piped input from
sys.stdinand detect pipe vs interactive mode - Configure a
[project.scripts]entry point inpyproject.toml
If any feel uncertain, revisit the specific lesson before continuing.
Test your understanding of the full Unix-style CLI tool chain by evaluating argument parsing, error handling, composability, and entry point configuration.
Checking access...