Database Engineer — Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What is a Database Engineer? A database engineer is responsible for providing the data infrastructure of a company or organization. This involves designing, creating, installing, configuring, debugging, optimizing, securing, and managing databases. Database engineers can either work as employees or as … Read more

How to Assign the Result of exec() to a Python Variable?

πŸ’¬ Question: Say you have an expression you want to execute using the exec() function. How to store the result of the expression in a Python variable my_result? Before I show you the solution, let’s quickly recap the exec() function: Recap Python exec() Python’s exec() function executes the Python code you pass as a string … Read more

Ethereum Smart Contract Fuzz-Testing with Echidna

What is Fuzzing?                 Fuzz testing (or fuzzing) is an automated software testing method with the goal to find vulnerabilities, security issues, and defects of the application. The idea is to inject invalid, malformed, or unexpected inputs into the application using a fuzzing tool and observing how the system reacts to those inputs (e.g., exceptions, leakage … Read more

Python Try Except: An Illustrated Guide

What is Try/Except in Python? Python’s try and except keywords are used to β€˜catch’ an exception and handle it, preventing it from terminating your program as it normally would. This could be useful in situations where you know there’s potential for an exception to occur, and you want your program to be able to continue … Read more

How to Print Colored Text in Python?

Summary: To print colored text in Python, you can use: The simple_color package, The ‘\033[1m’ ANSI escape-sequence, The termcolor module, The coloroma package, The colored library, The prompt_toolkit package. A simple, no-library way to print bolded text in Python is to enclose a given string s in the special escape sequence like so: print(“\033[38;5;4m”). We’ll … Read more

How to Extract Numbers from a String

Problem Formulation and Solution Overview In this article, you’ll learn how to extract numbers from a string in Python. To make it more fun, we have the following running scenario: This article references an Albanian proverb written by Driton Selmani in 2012. We will leave the interpretation up to you. πŸ’¬ Question: How would we … Read more

How to Add a Column to a CSV

Problem Formulation and Solution Overview In this article, you’ll learn how to add a new column to a CSV file in Python. To make it more fun, we have the following running scenario: The owner of the Finxter Academy has asked you to add a new column to their existing CSV file called Total_Chrgs. πŸ’¬ … Read more