One of my favorite Python data structures is the dictionary. Of course, I don't love getting an error when my key doesn't exist. Luckily, there's a way to check.
Looping over data structures in Python is always an interesting challenge. That's why we're going to look at dictionaries today.
When you try to retrieve a character that doesn't exist in a string, you get an IndexError. In this article, we'll talk more about what that means.
In an effort to help out more Python folks, I figured I'd start a series covering errors. Up first, we're going to chat about a special SyntaxError.
A lot of students run into trouble when they're asked to complete a programming project from scratch for the first time. Here are some tips!
If you're trying Python for the first time, it's a good idea to learn how to write a loop. Luckily, I've got you covered.