Okay, here’s my take on “pennsylvania mlb teams”, written as a blog post from my perspective, focusing on my experience and thought process.
Alright, so today I wanted to mess around a bit with sports data. I was kinda curious about MLB teams in Pennsylvania. Seemed simple enough, right? Well, lemme walk you through how I tackled this little project.
First things first, I had to figure out what MLB teams are actually in Pennsylvania. Duh, the Phillies and the Pirates. Got that out of the way quick. But then I started thinking, “Okay, now what do I do with this?” I didn’t just want a list; I wanted to do something.
So, I decided to gather some very basic data on them. Like, when were they founded? What are their colors? Basic stuff. I hopped over to the MLB website and Wikipedia, because honestly, that’s where everyone starts, right? I grabbed the following info:
Philadelphia Phillies: Founded 1883, Colors: Red, White, Blue
Pittsburgh Pirates: Founded 1887, Colors: Black, Gold
Okay, cool, I got my data. Now what? I considered making a little table in HTML, but that felt… boring. Then I thought, “Hey, why not try to visualize it somehow?” I started thinking about maybe plotting their founding years on a timeline using some JavaScript library I vaguely remember. But that felt like overkill for just two data points.
Then it hit me: I could just make a simple command-line script that prints out the info in a slightly more readable way. I’m most comfortable with Python, so that’s what I went with. I fired up my IDE and started typing.
Here’s roughly what the Python script looked like (super basic, I know):
Yeah, it’s not fancy. But it got the job done. I ran the script, and it printed out the info in a nice, neat format in my terminal. Success!
But then I thought, “Wait a minute… I could add some more info!” So, I went back to Wikipedia and grabbed their World Series wins. Updated my data dictionary, and tweaked the script to include that.
The next thing I did was adding a touch of color to my terminal output using ANSI escape codes. Just to make it a little less boring. Nothing crazy, just a splash of red for the Phillies and gold for the Pirates.
Honestly, this whole thing took maybe an hour, tops. It was a super simple exercise, but it scratched that itch to work with data and code something, anything. The main takeaway is that even small projects like this can be fun and a good way to keep your skills sharp. Plus, now I know a little more about Pennsylvania baseball. Win-win!
Maybe next time, I’ll try to pull real-time stats or something more complex. But for now, this was a good, quick win.