
How to Make an API Request with Python
You already know how to work with dictionaries and JSON. Now it's time to make your scripts talk to the outside world. The first time you pull live data…
Read tutorialRecognizing, catching, and responding appropriately to runtime exceptions in Python programs.
Tagged articles
6 articles in this tag.

You already know how to work with dictionaries and JSON. Now it's time to make your scripts talk to the outside world. The first time you pull live data…
Read tutorial
You know the feeling. You write user["email"], run your script, and Python stops everything with a KeyError because that key doesn't exist. The data came…
Read tutorial
Your script works on your laptop. Then you hand it to a teammate, or push it to a server, and it dies on line 4 because the folder path only exists on your…
Read tutorial
Every script starts with a simple promise: I'll just change this value when I need to. Then the script grows, the value gets buried deeper, and you find…
Read tutorial
You wrote a script that asks the user for a number. You tested it with 10, and it worked perfectly. Then someone typed ten, and the whole program died with…
Read tutorial
A program that never asks a question can only ever do the same thing. The moment you add input(), your script stops being a fixed script and becomes a tool…
Read tutorial