Python

The Ultimate Guide To Python Tuples

Python has several built-in data structures such as Lists, Sets and Dictionaries (check out the articles!).In this article, you’ll learn everything you need to know about tuples including real world examples. Tuple Motivating Example Did you ever have a function from which you wanted to return several values? Say, you’ve got a function translate(text, target_language) …

The Ultimate Guide To Python Tuples 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.

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 …

Python Dictionary – The Ultimate Guide Read More »

Python Functions and Tricks Cheat Sheet

Python cheat sheets are the 80/20 principle applied to coding: learn 80% of the language features in 20% of the time.Download and pin this cheat sheet to your wall until you feel confident using all these tricks. Download PDF for Printing Try It Yourself: Exercise: Modify each function and play with the output! Here’s the …

Python Functions and Tricks Cheat Sheet Read More »

Matplotlib Subplot – A Helpful Illustrated Guide

Too much stuff happening in a single plot? No problem—use multiple subplots! This in-depth tutorial shows you everything you need to know to get started with Matplotlib’s subplot() function. If you want, just hit “play” and watch the explainer video. I’ll then guide you through the tutorial: To create a matplotlib subplot with any number …

Matplotlib Subplot – A Helpful Illustrated Guide Read More »

Python Numpy 101: How to Calculate the Row Variance of a Numpy 2D Array?

You can play with the following interactive Python code to calculate the variance of a 2D array (total, row, and column variance). Here’s another practical example: What is the output of this puzzle?*Advanced Level* (solution below) Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. This puzzle introduces a …

Python Numpy 101: How to Calculate the Row Variance of a Numpy 2D Array? Read More »

How to Calculate Variance of Python NumPy Arrays?

Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. Did you already learn something new today? Let’s master the popular variance function in NumPy! Problem: How to calculate the variance of a NumPy array? Solution: To calculate the variance of a Python NumPy array x, use the function np.var(x). …

How to Calculate Variance of Python NumPy Arrays? Read More »

Python Endswith

Python endswith() Tutorial – Can We Use Regular Expressions?

While refactoring my Python code, I thought of the following question. Can You Use a Regular Expression with the Python endswith() Method? The simple answer is no. Instead, you should use the match(regex, string) function from the re module. In fact, I realized that using a regex with the endswith() method doesn’t make sense. Why? …

Python endswith() Tutorial – Can We Use Regular Expressions? Read More »

Start Learning Python

What’s The Best Way to Start Learning Python? A Tutorial in 10 Easy Steps!

Are you looking for the best way of becoming a professional Python developer? After reading this article, you will have a crystal clear plan of how to start learning Python. You don’t need any programming skills for this plan to work. In short, you invest 70% of your learning time in practical projects and 30% …

What’s The Best Way to Start Learning Python? A Tutorial in 10 Easy Steps! Read More »