Python

What Is a Bit Vector? (+ Vital Examples in Python)

What Is a Bit Vector? (+ Vital Examples in Python)

This is what a bit vector is.

A bit vector is like an array of bits.

So if you want to know what a bit vector is in detail and how to create and use one, then you’re in the right place.

Let’s jump right in!

Continue Reading
No Comments

JSON Object vs. JSON Array Explained With Python (+ Errors)

JSON Object vs. JSON Array Explained With Python (+ Errors)

This is about JSON objects vs. JSON arrays.

Whether you use a JSON object or a JSON array is a matter of taste.

So if you want to know what the difference between a JSON object and a JSON array is, then this article is for you.

Let’s get started!

Continue Reading
No Comments

IndentationError: Unexpected Unindent in Python (and 3 More)

IndentationError: Unexpected Unindent in Python (and 3 More)

Python indentation is a part of the syntax. It's not just for decoration.

You'll learn what these errors mean and how to solve them:

  • IndentationError: unexpected indent
  • IndentationError: expected an indented block
  • IndentationError: unindent does not match any outer indentation level
  • IndentationError: unexpected unindent

Let's kick things off with error #1!

Continue Reading
No Comments
Menu