Python refresher: lists vs tuples vs sets vs dictionaries

July 13, 2024

Just a quick refresher to clarify differences:

  • Sets, lists, tuples, and dictionaries are all data structures that offer various ways to organize and store data. The difference is in the details.
  • Lists are an ordered and mutable collection of elements(meaning that their values can be modified after creation).
      . . .

Read More

Refresher on negative indexing in python

July 02, 2024

Friendly reminder regarding python slice notation for negative indexing. It's covered really well here.

Basically, the last value has an index of -1... second last has an index of -2... and so on.

 +---+---+---+---+---+---+
 | P | y | t | h | o | n |
 +---+---+---+---+---+---+
 0 1 2 3 4 5
 -6 -5 -4 -3 -2 -1 . . .

Read More

Archive
   Subscribe by email and never miss a post.

This update link alerts you to new Silvrback admin blog posts. A green bubble beside the link indicates a new post. Click the link to the admin blog and the bubble disappears.

Got It!