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.
Tag: Software Development
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!
Are you worried that people might reverse engineer your script? One way to combat that issue is to obfuscate your code. Luckily, it's not too hard to d
How to Comment Code in Python: Inline, Multiline, and Docstring
How do you comment code in Python? Turns out there are three different ways, each with their own advantages and disadvantages.
How to Add an Item to a List in Python: Append, Slice Assignment, and More
Whether or not you know how to add an item to a list in Python, you'll want to read this article just to learn about slice assignment. Trust me.