Chapter 11. Python programs

This chapter covers

  • Creating a very basic program
  • Making a program directly executable on Linux/UNIX
  • Writing programs on Mac OS X
  • Selecting execution options in Windows
  • Comparing programs on Windows versus Linux/UNIX
  • Combining programs and modules
  • Distributing Python applications

Up until now, you’ve been using the Python interpreter mainly in interactive mode. For production use, you’ll want to create Python programs or scripts. A number of the sections in this chapter focus on command-line programs. If you come from a Linux/UNIX background, you may be familiar with scripts that can be started from a command line and given arguments and options that can be used to pass in information and possibly redirect their ...

Get The Quick Python Book, Second Edition 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.