January 2017
Intermediate to advanced
606 pages
14h 1m
English
9.2 Writing Structures to a File
9.4 Handling Exceptions using try…except
Programs that we have developed so far take data from the user in an interactive manner. Such data remain in memory only during the lifetime of the program. Often we want to store data permanently, in the form of files that usually reside on disks, so that it is available as and when required. For example, for login application, we would like to validate the user name and password entered by a user against the names and passwords of valid users stored permanently in a file. By default, Python provides a standard input file and a standard output file to ...