Tuples, Sets and Booleans

Let’s learn about tuple, set, and boolean data types.

Tuples have the following properties:

  • They are sequences, like lists.
  • They are immutable, like strings, and can’t be reassigned.
  • They’re used to represent a fixed collection of items.
  • They’re coded in parentheses () instead of square brackets.

Let’s create a tuple and see its response to some operations.

Get hands-on with 1200+ tech skills courses.