The Art of Clean Code [Book Reviews]

On this page, I’ll collect selected reader feedback for my newest book πŸ“• “The Art of Clean Code” (Amazon, NoStarch). I’ll only share the feedback from readers who explicitly agreed to publish it here. πŸ‘‰ Want to Get Featured Here? Feel free to send in your feedback by replying to any of my emails. “Cannot … Read more

Python TypeError: ‘dict_values’ Not Subscriptable (Fix This Stupid Bug)

Do you encounter the following error message? TypeError: ‘dict_values’ object is not subscriptable You’re not alone! This short tutorial will show you why this error occurs, how to fix it, and how to never make the same mistake again. So, let’s get started! Solution Python raises the “TypeError: ‘dict_values’ object is not subscriptable” if you … Read more

Python TypeError: ‘dict_keys’ Not Subscriptable (Fix This Stupid Bug)

Do you encounter the following error message? TypeError: ‘dict_keys’ object is not subscriptable You’re not alone! This short tutorial will show you why this error occurs, how to fix it, and how to never make the same mistake again. So, let’s get started! Solution Python raises the “TypeError: ‘dict_keys’ object is not subscriptable” if you … Read more

Python – Return NumPy Array From Function

Do you need to create a function that returns a NumPy array but you don’t know how? No worries, in sixty seconds, you’ll know! Go! πŸš€ A Python function can return any object such as a NumPy Array. To return an array, first create the array object within the function body, assign it to a … Read more

Python Return String From Function

Do you need to create a function that returns a string but you don’t know how? No worries, in sixty seconds, you’ll know! Go! πŸš€ A Python function can return any object such as a string. To return a string, create the string object within the function body, assign it to a variable my_string, and … Read more

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

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