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.
Category: Code
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.
One of my students asked me to write up an article on how to pick up Python as a Java developer, so I did.
When 87% of your students miss a quiz question, it's up to you to make some sense of it. For instance, you might make an entire article about Java iterators.
How to Split a String by Whitespace in Python: Brute Force and split()
There are a lot of ways to manipulate strings. For instance, we might be interested in splitting a string by a separator like whitespace.
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!