Python Print Dictionary Keys Without “dict_keys”

Problem Formulation and Solution Overview If you print dictionary keys using print(dict.keys()), Python returns a dict_keys object, i.e., a view of the dictionary keys. The representation prints the keys enclosed in a weird dict_keys(…) wrapper text, e.g., dict_keys([1, 2, 3]). Here’s an example: There are multiple ways to change the string representation of the keys, … Read more

Deep Forecasting Bitcoin with LSTM Architectures

Although Neural Networks do a tremendous job learning rules in tabular, structured data, it leaves a great deal to be desired in terms of ‘unstructured’ data. And there we come to a new concept: Recurrent Neural Networks. Recurrent Neural Network A Recurrent Neural Network is to a Feedforward Neural Network as a single object is … Read more

How to Find Min and Max Values in a 1D NumPy Array

Problem Formulation and Solution Overview This article will show you how to find the minimum and maximum values in a 1D NumPy array. To make it more interesting, these examples will generate an array of ten (10) random integers using the random.randint() function from the NumPy library and return the minimum and maximum values of … Read more

Ultrasound Money πŸ¦‡πŸ”Š ETH Supply Equilibrium & Burn Rate for Non-Stakers

πŸ’¬ Question: If you’re visiting the great ultrasound.money website, you may have stumbled over the term “burn rate for non-stakers”. What does it mean exactly? In this article, you’ll learn all about it! Before I give you a concise definition, let’s recap some key terms for learning and ease of understanding. What Is Token Burning? … Read more

Solidity Deep Dive — Syllabus + Video Tutorial Resources

Do you want to learn Solidity and create your own dApps and smart contracts? This free online course gives you a comprehensive overview that is aimed to be more accessible than the Solidity documentation but still complete and descriptive. ▢️ Multimodal Learning: Each tutorial comes with a tutorial video that helps you grasp the concepts … Read more

User-Defined Value Types in Solidity

In this article, we’ll learn about user-defined types in Solidity. It’s a somewhat shorter and simple article, but it’ll provide us with insight into how we can utilize user-defined value types as means of simple abstractions. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to … Read more

Solidity String Types, Unicode/Hex Literals, and Enums

In this article, we’ll learn about string literals and types, Unicode literals, hexadecimal literals, and enums. They’re not complex types, and getting to know them will be simple, but also prove very useful in our future endeavors through the Solidity programming language. It’s part of our long-standing tradition to make this (and other) article a … Read more

How to Remove Text Within Parentheses in a Python String?

Problem Formulation and Solution Overview This article will show you how to remove text within parentheses in Python. To make it more interesting, we have the following running scenario: Rivers Clothing has a CSV file containing all their employees. The format is currently first name (middle name) and last name (for example, Martin (Robert) Simpson). … Read more

Python Print Dictionary Values Without “dict_values”

Problem Formulation and Solution Overview If you print all values from a dictionary in Python using print(dict.values()), Python returns a dict_values object, a view of the dictionary values. The representation prints the values enclosed in a weird dict_values(…) wrapper text, for example: dict_values([1, 2, 3]). Here’s an example: There are multiple ways to change the … Read more

How to Clean and Format Phone Numbers in Python

Problem Formulation and Solution Overview This article will show you how to create, clean up, and format phone numbers in Python. To make it more interesting, we have the following scenario. Right-On Realtors has a Contact Us form on their main website containing several fields. One of these fields is a Phone Number. Upon submission, … Read more