Chapter 14 Flashcards
persistent
pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage.
format operator
an operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.
format string
a string, used with the format operator, that contains format sequences.
format sequence
a sequence of characters in a format string, like %d, that specifies how a value should be formatted.
text file
a sequence of characters stored in permanent storage like a hard drive.
directory
a named collection of files, also called a folder.
path
a string that identifies a file
relative path
a path that starts from the current directory.
absolute path
a path that starts from the topmost directory in the file system
catch
to prevent an exception from terminating a program using the try and except statements.
database
a file whose contents are organized like a dictionary with keys that correspond to values.