Solidity Error Handling with assert(), require(), revert() – A Guide for Python Coders

In Solidity, you can use the require, revert, and assert functions to check error conditions and handle exceptions, but they look similar at first glance, and you might get confused about how to use them. This article will explain their differences, specifically to Python developers. We use a simple smart contract below, taken from the … Read more

Python Get Values from a Nested Dictionary

A Python nested dictionary is a dictionary with another dictionary or dictionaries nested within (dictionary of dictionaries or collection of collections). Nested dictionaries are one way to represent structured data (similar to a database table(s) relationship). An analogy for this concept is the Russian Nesting Dolls.   Our article focuses on various ways to retrieve … Read more

Python Dictionary: How to Create, Add, Replace, Retrieve, Remove

Python defines the dictionary data type as an unordered collection that contains key:value pairs. The key:value pairs (separated by commas) are wrapped inside curly braces ({}). Β  Each key inside the dictionary must be unique and immutable. Dictionary keys can be one of the following data types: integer, string, or tuple. Dictionary keys can not … Read more

Self-Employed Programmer? A Simple Heuristic

Python Freelancer

Should you become your own boss, being self-employed? This is a valid question given the massive opportunities these days. Freelancing is growing double-digits percentages every year: One of the largest freelancing platforms Fiverr recently reported an 89% (!) annual growth rate! ?Β This article and video will help you decide if this opportunity is for you! … Read more

Python Namespaces Made Simple

Namespace are everywhere in Python whether you realize it or not. If you don’t know about Python namespaces, you’ll eventually introduce nasty bugs into your Python code. Let’s fix this once and for all! πŸ™‚ As you read over the article, you can watch my explainer video: Why Namespaces? In many classes with 30+ students, … Read more