Chapter 7: Files and Exceptions: The Trivia Challenge Game


Download CD Content

Overview

Variables provide a great way to store and access information while a program runs, but often, you'll want to save data so that you can retrieve it later. In this chapter, you'll learn to use files for this kind of permanent storage. You'll also learn how to handle errors that your code may generate. Specifically, you'll learn to do the following:

  • Read from text files

  • Write to text files

  • Read and write more complex data with files

  • Intercept and handle errors during a program's execution




Python Programming for the Absolute Beginner
Python Programming for the Absolute Beginner, 3rd Edition
ISBN: 1435455002
EAN: 2147483647
Year: 2003
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net