Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

14.0: Introduction

( \newcommand{\kernel}{\mathrm{null}\,}\)

close up of a computer screen with a file menu open
Figure 14.1 credit: Larissa Chu, CC BY 4.0

Programming often involves reading information from files and writing information into files. This chapter begins by introducing how to read from and write into files in Python.

Reading and writing files can lead to exceptions when the file specified cannot be found. There are many other situations in which exceptions can occur. The second half of the chapter introduces exceptions and how to handle exceptions in Python.


This page titled 14.0: Introduction is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?