Step 2: Simple Bugs

Now that you've caught a few bugs, it's time to get a bit more... complicated.

Bug 1: The Missing Semicolon

Remember, in Python, semicolons are not optional. They're not even optional-ish. They're like the in-laws at Thanksgiving: you can't avoid them, but you can try.

Read more about semicolon etiquette

Bug 2: Off-by-One Errors

Don't be like me and think that off-by-one errors are just a myth perpetuated by math teachers. They're real, and they're a real pain.

Learn how to avoid them with our expert advice

And that's it for today's installment of Practice Makes Perfect! Stay tuned for tomorrow's installment, where we'll cover even more exciting bugs!

Go to Step 3: More Complex Bugs