The Zen of Python, by Tim Peters
August 03, 2024
I know this exists in exactly one billion places on the Internet, but figured another blog post wouldn't hurt. Digging this:
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is . . .
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 . . .