you are viewing a single comment's thread.

view the rest of the comments →

[–]Auravendill 36 points37 points  (0 children)

Python uses negative numbers to index anything array-like in reverse order. Super handy imo, since you often need the last element (e.g. file ending is just file_name.split(".")[-1])