- Open repository in codespaces
- Create a branch of this repository. Use your first name as the name of the branch. You may use the UI, or this command
git checkout -b YOUR_NAME
- Create a new file,
solution.py
, in the root directory of this repository that you will use to write your code. - Write a python function that reads in
presidents.json
in the root of this repository and computes the average age of each of the people in the file. - Edit
presidents.json
to add a new president. Rerun your function to make sure it prints the age of the new president. - Edit the presidents.json file to add a new column for state of birth.
- Write a python function that reads in your new
presidents.json
and prints out all of the presidents sorted by state. - Stretch goal 1: Write a python function that finds all json files in the repository directory or any subdirectory. Compute the average age of all of the people listed in any of these files.
- Stretch goal 2: Write a python function that finds all json or csv files in the repository directory or any subdirectory. Remove duplicates, and compute the average age of all of the people listed in any of these files.
-
Notifications
You must be signed in to change notification settings - Fork 4
cmu-crafting-software/file-parsing-in-class
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
in class files example
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published