User Inputs and Outputs

In this chapter, we'll look at the following recipes:

  • Using features of the print() function
  • Using input() and getpass() for user input
  • Debugging with "format".format_map(vars())
  • Using argparse to get command-line input
  • Using cmd for creating command-line applications
  • Using the OS environment settings

Get Modern Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.