How to Make an Integer Larger Than Any Other Integer in Python?

This article discusses a situation where you are required to implement an integer object which, when compared using the greater than operator >, to any other existing integer value in the program, will always return True.  Before diving into the possible solutions, we must take note of the following: Python 2 consists of plain integers … Read more

Fibonacci in One Line Python

When I googled “Fibonacci Python” today, I found a lot of algorithms (most of them easy to understand). But I wondered — is there a Python one-liner to find Fibonacci numbers in the most concise way? As it turns out, there is! Read on to learn how to write the Fibonacci algorithm in one line … Read more

5 Evergreen Ways to Get Clients as a Freelancer

Create more Fiverr gigs and wait. Apply for Upwork gigs proactively. Contact business owners via email and offer your valuable services AFTER providing them some value. Use content marketing to build a community and sell your services to them. Create your scalable advertising funnel (e.g., Facebook Ads, Google Ads, Pinterest Ads). To create your thriving … Read more

Python One Line Regex Match

Summary: To match a pattern in a given text using only a single line of Python code, use the one-liner import re; print(re.findall(pattern, text)) that imports the regular expression library re and prints the result of the findall() function to the shell. Problem: Given a string and a regular expression pattern. Match the string for … Read more

Python Dictionary – The Ultimate Guide

Python comes with several built-in data types. These are the foundational building blocks of the whole language. They have been optimised and perfected over many years. In this comprehensive tutorial, we will explore one of the most important: the dictionary (or dict for short). For your convenience, I’ve created a comprehensive 8000-word eBook which you … Read more

Python’s Random Module – Everything You Need to Know to Get Started

An random example

Life is unpredictable. Sometimes good things happen out of the blue like you find $100 on the floor. And sometimes bad things happen, like your flight being canceled because of bad weather. Most programming languages have a module to deal with randomness. Python is no exception coming with the module named random and in this … Read more

Python Infinity

Summary: Python Infinity is an undefined value (negative or positive) such that positive infinity is greater than while negative infinity is lesser than any other value in a given code. The numerous ways of using Python infinity are: Using float(‘Inf’) and float(‘-Inf’) Using the math module. Using the decimal module. Using the β€œNumpy” library. Using … Read more

Struggling to Assemble a Diverse Team? Read On

In today’s corporate world, diversity can give you that crucial edge you need to overtake the competition. The more backgrounds, beliefs, and cultures represented in your team, the more ideas and points of view it will benefit from. Diversity can be the key that unlocks the next big idea. But don’t take my word for … Read more