Toilet Wall Cheat Sheet

Best 15+ Machine Learning Cheat Sheets to Pin to Your Toilet Wall

This article compiles for you the 15 best cheat sheets in the web that help you get started with machine learning. If you’re short on time, here are the 15 direct PDF links (open in a new tab): Supervised Learning (Afshine Amidi) Unsupervised Learning (Afshine Amidi) Deep Learning (Afshine Amidi) Machine Learning Tips and Tricks …

Best 15+ Machine Learning Cheat Sheets to Pin to Your Toilet Wall Read More »

They Use These 15+ Python Interview Questions To Fail You … (And What You Can Do About It)

Fear Your Coding Interview? This article shows you how to make your coding interview a success. Table of Contents General Tips to Prepare Your InterviewWhich Programming Questions Should You Prepare?Question 1: Get the missing number from an integer list 1-100. Question 2: Find duplicate number in integer list. Question 3: Check if a list contains …

They Use These 15+ Python Interview Questions To Fail You … (And What You Can Do About It) Read More »

Pyhton Freelancer

How to Become a Python Freelancer—and Earn $1,000 on the Side? [A Step-by-Step Tutorial]

Do you want to earn money as a Python freelancer? But you just start out learning Python? This article leads you step-by-step through the adventure of becoming a Python freelancer. Learn about the exact steps you need to do to become a Python freelancer – starting out as a Python newbie. Without losing any time, let’s dive into the 7 steps of becoming a Python freelancer.

How to Display a 1D and 2D Multiplication Table in Python?

Table of Contents Python Multiplication Table For LoopPython Multiplication Table While LoopPython Multiplication Table Nested For LoopPython Multiplication Table List Comprehension Python Multiplication Table For Loop To calculate the multiplication table for a given number, iterate over all values i=0, 1, …, limit in a for loop and use the following statement as a loop …

How to Display a 1D and 2D Multiplication Table in Python? Read More »

How to Limit Floats to Two Decimal Points in Python?

Table of Contents Introduction✨Method 1: Using round() function✨Method 2: Using The format() Function✨Method 3: By Using % Formatting✨Method 4: By using f-strings✨Method 5: Using quantize() with Decimal Conclusion Introduction Problem Formulation: Given a floating-point value. How to limit it to two decimal places in Python? Example: Let’s have a look at a program where you have …

How to Limit Floats to Two Decimal Points in Python? Read More »

Division in Python

The double-frontslash // operator performs integer division and the single-frontslash / operator performs float division. An example for integer division is 40//11 = 3. An example for float division is 40/11 = 3.6363636363636362. A crucial lesson you need to master as a programmer is “division in Python”. What does it mean to divide in Python? …

Division in Python Read More »

A RegEx to Match Bitcoin Addresses

What regular expressions can be used to match Bitcoin addresses? A regular expression for validating Bitcoin addresses must check that the string is 26-35 characters long, start with “1” or “3” or “bc1” consists of uppercase or lowercase alphabetic and numeric characters, and ensure it doesn’t contain ambiguous characters. Not allowed are the uppercase letter …

A RegEx to Match Bitcoin Addresses Read More »

Python Multiplication Operator

Python’s multiplication operator * multiplies two objects. The semantics of the multiplication depends on the operands’ data types. For example, multiplying two integers performs arithmetic multiplication whereas multiplying a list with an integer performs list concatenation. The specific return value of the multiplication operator is defined in a data types’ __mul__() magic method. Have a …

Python Multiplication Operator Read More »

The $31,000,000 Bitcoin Valuation Thesis

In this article, I’ll develop a simple model on how to value Bitcoin. Valuation thesis: Bitcoin will replace the SWIFT bank-to-bank settlement protocol. Valuation methodology. Bitcoin is now the largest, most decentralized, and most secure international monetary network in the world. This makes it a perfect candidate for bank-to-bank settlements of high-value transactions. Currently, these …

The $31,000,000 Bitcoin Valuation Thesis Read More »

[Google Interview] Find All Numbers Disappeared in an Array

🏗️ Company Tags: Google Table of Contents Problem Formulation💡Examples🖊️Python One-Liner Using list + set + range🖊️Optimal Solution: Without Using EXTRA Space🖊️Solution 3Conclusion Problem Formulation Given an array nums of n integers. Return an array containing all the integers in the range[1, n]that do not appear in nums. ✒️ Here, nums[i] is in the range [1, n]. ⚠️Constraints: n == nums.length …

[Google Interview] Find All Numbers Disappeared in an Array Read More »

Python For Loop Inside Lambda

Problem: Given an iterable, how to print it using a for loop within a lambda function. Table of Contents Overview✨Solution 1: Using a List Comprehension✨Solution 2: Using list + map + lambda✨Solution 3: Using write method on sys.stdout along with join Method🔖Complicated Example 🏷️Method 1: Using a List Comprehension🏷️Method 2: Using a combination of list+map+lambda+filter 💡Tidbit: When To Use …

Python For Loop Inside Lambda Read More »

Python Addition Operator

Python provides the addition operator + to add two objects. The semantics of the addition depends on the operands’ data types. For example, adding two integers perform arithmetic addition whereas adding two lists performs list concatenation. The specific return value of the addition operator is defined in a data types’ __add__() magic method. Have a …

Python Addition Operator Read More »