Skip to content

rebeccapatterson/ToolBox-Pickling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ToolBox-Pickling

Pickling Project Toolbox starter code

Full instructions at https://sites.google.com/site/sd16spring/home/project-toolbox/pickling

This program stores and update a counter. The fucntion update_counter takes a file name and reset indication (boolean True or Flase) as inputs. If the file does not exist, it will be created and the counter will be initialized to 1. If the file exists and the reset is set to True, the counter will be reset to 1. If the file exist and the reset is False, the counter will increment by 1.

When the code is called in terminal, it runs its doctests and shows the results. If you wish to run this code, add a line at the end that calls update_counter with your desired file and reset.

About

Pickling Project Toolbox starter code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%