Upwork vs Fiverr — Where to Sell Your Freelancing Services as a Coder?

So you want to participate in the booming “gig economy” creating an additional income stream by working from home? Members of my Python Freelancer Course ask this question a lot: what’s the best marketplace to sell your coding skills: Upwork.com or Fiverr.com? This is a multi-dimensional decision problem, but I have a clear preference. Read … Read more

How Do You Deal with International Sales Taxes when Creating Your Online Course with Teachable, Podia, or Thrive Apprentice?

I am not an attorney and this should not be taken as legal advice. It’s just based on my experience as a course creator. Teachable does not collect state sales taxes for you. They also don’t collect taxes for all international sales. If a user from Japan buys your course, you are responsible for paying … Read more

Why Does the Scikit-learn Library use a Trailing Underscore Convention for Attribute Names?

If you’ve used the sklearn library in your own code, you may have realized that all attributes are suffixed with a trailing underscore. Here’s an example for the k-means algorithm: In the second-last line, we used the kmeans attribute cluster_centers_. Why does sklearn library not use the attribute name cluster_centers? ‘The short answer is, the … Read more

How to Increase Your Salary as a Python Developer?

Today, many senior coders know that their peers are already earning six figures. Yet, most coders don’t. What are the factors that influence whether someone receives a high Python salary? Set Your Goals The Right Way: It sounds trivial but before you can start to increase your salary as a developer, you have to set … Read more

A List of Lambda Functions? This Python Puzzle May Surprise You…

Guido doesn’t like lambda functions too much. Yet, most large code projects contain a lot of them! (Many coders use lambda functions as GUI callbacks, etc.) In this “Coffee Break Python” email series, we take a pragmatic approach regarding Python code style — living in the “is” rather than in the “should be” world. Can … Read more

Decimal: Python’s Float Trap and How to Solve it

You may know the following surprising code snippet: The following explanation is from the puzzle-based learning Python workbook: This puzzle performs a simple arithmetic computation adding together the float value 0.1. The question seems to be very simple—but as we’ll see in a moment, it’s not simple at all. Your inner voice is wrong. And … Read more

Crazy Python Puzzle (Tuple Confusion)

In this article, you’ll study a beautiful Python puzzle which was created by my friend and co-author Lukas. When I saw this puzzle the first time, I was very lazy about it. I looked at the puzzle and immediately threw my answer into Lukas’ face. It was so obvious… But Lukas kept smiling and I … Read more