Python Absolute Value

The absolute value of a number is the non-negative value of a number without regard to its sign. This is often useful when you care more about the size of a value, you are calculating a delta from zero in either direction, or you are measuring something that is direction agnostic and only care about the magnitude. […]
Python Length of List and Other Sequence Operations You Should Know

As someone who frequently switches between programming languages, I have developed a mostly-useless-super-power. I have gained the ability to forget basic syntax and built-in methods within days; more importantly, I can find answers to most syntax questions in less than 30 seconds. I have a suspicion that google-fu is a skill that all experienced developers […]
ImportError: attempted relative import with no known parent package

You hate to see it. You just started a new project. Things are going great. You decide it is time to get serious — so you start a second file and begin moving the extraneous functions into that file. You finish the cleanup effort. Feeling great. Let’s run it one more time before I sign […]