Hole | Wins | Losses | Score | +6 |
---|---|---|---|---|
1 | 39 | 42 | +6 | (+2) |
10 | ||||
Avg | 39 | 42 | +38 |
Here is the corrected data in JSON format:
{
"games": [
{
"date": "March 30, 2023",
"team": "Pirates",
"score": "1-4"
},
...
{
"date": "October 3, 2010",
"team": "Pirates",
"score": "2-5"
}
]
}
This format is more suitable for JSON data and allows for easy parsing and querying of the data.
Here's a sample Python code snippet to parse this data:
import json
with open('pittsburgh_pirates.json') as f:
data = json.load(f)
for game in data['games']:
print(f"Date: {game['date']}, Team: {game['team']}, Score: {game['score']}")
This code loads the JSON data from a file and then iterates over each game, printing out the date, team, and score. Updated: July 18, 2025 at 4:02 AM