Describing the Constant Comparative Method in Coding

As we get technologically more advanced than ever before, in the history of humankind the amount of information available to us gets proportionally larger. Because of these conditions, we can collect and use various data to study and analyze the different phenomena and discover new theories. Unlike the traditional way of researching, with a hypothesis … Read more

How to Print a String and an Integer

Problem Formulation and Solution Overview In this article, you’ll learn how to print a string and an integer together in Python. To make it more fun, we have the following running scenario: The Finxter Academy has decided to send its users an encouraging message using their First Name (a String) and Problems Solved (an Integer). … Read more

How to Find the Shortest String in a Python List?

Use Python’s built-in min() function with a key argument to find the shortest string in a list. Call min(lst, key=len) to return the shortest string in lst using the built-in len() function to associate the weight of each string—the shortest string will be the minimum. Problem Formulation Given a Python list of strings. Find the … Read more

How to Find the Longest String in a Python List?

Use Python’s built-in max() function with a key argument to find the longest string in a list. Call max(lst, key=len) to return the longest string in lst using the built-in len() function to associate the weight of each string—the longest string will be the maximum. Problem Formulation Given a Python list of strings. Find the … Read more

Ethereum Classic Quickstart

This article will answer some basic questions on Ethereum Classic. Its main purpose is to give you a quick overview of the project. I’m not affiliated in any way with Ethereum Classic, so I try to be as unbiased as I can. What is Ethereum Classic? Ethereum Classic is an open-source proof-of-work blockchain and distributed … Read more

How to Apply a Function to Each Cell in a Pandas DataFrame?

Problem Formulation Given the following DataFrame df: 💬 Challenge: How to apply a function f to each cell in the DataFrame? For example, you may want to apply a function that replaces all odd values with the value ‘odd’. Solution: DataFrame applymap() The Pandas DataFrame df.applymap() method returns a new DataFrame where the function f … Read more

How to Ignore Case in Python Strings

Problem Formulation and Solution Overview In this article, you’ll learn how to ignore (upper/lower/title) case characters when dealing with Strings in Python. The main reason for ignoring the case of a String is to perform accurate String comparisons or to return accurate search results. For example, the following three (3) Strings are not identical. If … Read more

Ethereum Virtual Machine (EVM) Message Calls – Solidity Smart Contracts

You can scroll through the presentation as you watch the video here: In this article, we’ll hold the depth from the last article regarding the Ethereum Virtual Machine through topics such as message calls and special variants of calls, logs, callcode/delegatecall, libraries, logs, special operations for smart contract code creation/removal, and finally, precompiled contracts. This … Read more