H
1

Finally got my first Python script to run without errors

I spent about $40 on a Udemy course for Python basics last month. It felt like a lot for me, but the videos walked me through setting up my environment step by step. I kept getting stuck on installing packages before. Yesterday, I wrote a script that pulls the weather from an API and prints it out. It actually worked on the first try. Has anyone else found a good beginner resource that explains APIs simply?
3 comments

Log in to join the discussion

Log In
3 Comments
felix_jones
felix_jones21d agoTop Commenter
Oh man that's awesome! The first time a script runs clean is such a rush. And @nora10 I actually second what you said about freeCodeCamp. Their API section really broke it down in a way that made sense to me too. The thing I struggled with was just understanding how the request and response cycle works, but they had this example with a fake bookstore that finally made it click. What also helped me was looking at the actual JSON data in my browser first before trying to code around it. It took me a while to realize the API key part isn't as scary as it seems once you just treat it like a password for the service. Keep going with those projects, that weather script is a solid first step into connecting to real data out there.
5
nora10
nora101mo ago
Honestly freeCodeCamp's API section was super clear for me. Tbh their hands on projects just clicked.
1
anthony127
anthony1271mo ago
Yeah their hands on projects really make it stick.
5