In console applications user input will mostly come through the form of arguments provided by the user’s call of the program. We will explore how argparse, Python 3’s built-in argument parser converts this input to an appropriate type. There are some quirks there that provide some additional insights into (duck) typing and user input validation.
Categories