Pytest – How to Run Tests Efficiently

Pytest can offer various options that can increase your productivity when you test your code. Although Pytest provides sensible default settings, and you can use it out of the box, it will not offer a one-size-fits-all solution. As you continue writing tests, you will sooner or later start to look for ideas that can make … Read more

How to Restart a Loop in Python?

Problem Formulation Given a Python loop and a logical condition. How to restart the loop if the condition is met? Solution 1: Reset While Loop The while loop checks a condition in order to determine whether the loop body should be executed or not. You can reset the condition to the initial value in order … Read more

The Nature of Software Development

Developing software is a huge task which may easily overwhelm you. You need to learn not only the programming language itself, but also algorithms and algorithmic design. You need to master tools like Git (cheat sheets here), improve your debugging and testing skills, and improve your collaboration skills when working in teams (e.g. agile methods). … Read more

Should I Become a Freelance Developer?

Being a freelance developer is a new way of living in the 21st century: It’s a path of personal growth, learning new skills, and earning money in the process. But in today’s digital economy, becoming a freelance developer is – above everything else – a lifestyle choice. It can give you fulfillment, flexibility, and constant … Read more

The Art of Clean Code [Book Resources]

This page contains resources for my book “The Art of Clean Code” (NoStarch, 2022). You can check out the book here. Olivetti Faces Access the code in the Jupyter Notebook here: Life Expectancy Calculator Access the code in the Jupyter notebook here:

How to Get Accepted By Upwork as a Freelance Coder? A Field Study

Do you want to start earning money and selling your skills as a freelance coder? Great! Being a freelance coder is an excellent opportunity in today’s marketplace. You’re getting paid to learn the programming language you love. Where else can you get such a good deal? Is Upwork for you? To share my personal experience … Read more

How to Print Without Newline in Python—A Simple Illustrated Guide

Summary: To print without the newline character in Python 3, set the end argument in the print() function to the empty string or the single whitespace character. This ensures that there won’t be a newline in the standard output after each execution of print(). Alternatively, unpack the iterable into the print() function to avoid the … Read more

List of Unicode Superscript Characters

Character Description Character U+2070 SUPERSCRIPT ZERO ⁰ U+2071 SUPERSCRIPT LATIN SMALL LETTER I ⁱ U+2074 SUPERSCRIPT FOUR ⁴ U+2075 SUPERSCRIPT FIVE ⁡ U+2076 SUPERSCRIPT SIX ⁢ U+2077 SUPERSCRIPT SEVEN ⁷ U+2078 SUPERSCRIPT EIGHT ⁸ U+2079 SUPERSCRIPT NINE ⁹ U+207A SUPERSCRIPT PLUS SIGN ⁺ U+207B SUPERSCRIPT MINUS ⁻ U+207C SUPERSCRIPT EQUALS SIGN ⁼ U+207D SUPERSCRIPT LEFT … Read more

[Review] Learn to Code by Solving Problems – by Prof. Daniel Zingaro

In this article, I’ll review the book “Learn to Code by Solving Problems: A Python Programming Primer” by Prof. Daniel Zingaro. The book is available here: Amazon NoStarch This is an independent review. I didn’t include any affiliate link, so I won’t get compensated if you decide to purchase the book. Although I know Daniel … Read more