Python Articles

Sorted By: Most Recent
Dario Radečić Dario Radečić
Updated on November 08, 2024

Pip Install Specific Version: A Guide

Pip allows users to install a specific version of a Python package using the pip install == command. Here’s how.

Image: Shutterstock / Built In
Isabelle Maciohsek Isabelle Maciohsek
Updated on November 07, 2024

How to Check if a List Is Empty in Python

There are a variety of methods that can be used to check if a list is empty in Python, including the Truth Value Testing method, the len() function and the == operator. Learn more.

Image: Shutterstock / Built In
Shashwat Nautiyal Shashwat Nautiyal
Updated on November 04, 2024

A Guide to ESLint, Prettier, Husky and Lint-Staged

ESLint, Prettier, Husky and lint-staged are code editing tools that can be used to correct errors and format code for consistency pre-commit. Here’s how they work. 

Image: Shutterstock / Built In
Adam Ierymenko Adam Ierymenko
Updated on November 01, 2024

The Shift To Memory-Safe Code Is Coming for Your Industry

The pervasive use of memory-unsafe languages in vital systems is exposing them to vulnerabilities. Our expert explains why that’s a problem.

Image: Shutterstock / Built In
Ruhi Tyagi Ruhi Tyagi
Updated on October 31, 2024

How to Fix Python TypeError: String Indices Must Be Integers

When values at index are extracted using string values it results in a TypeError of “string indices must be integers.” Learn how to resolve it.

Image: Shutterstock / Built In
Noah Topper Noah Topper
Updated on October 30, 2024

Bag-of-Words Model in NLP Explained

The bag of words model is a simple way to convert text into numerical data for natural language processing in machine learning. Our expert explains how it works.

Image: Shutterstock / Built In
Giorgos Myrianthous Giorgos Myrianthous
Updated on October 24, 2024

What Does “If __name__ == ‘__main__’” Do in Python?

__name__ is a special variable in Python. “If __name__== ‘__main__’” is a conditional statement that tells the Python interpreter under what conditions the main method should be executed.

Image: Shutterstock / Built In
Kay Jan Wong Kay Jan Wong
Updated on October 24, 2024

Python Tree Implementation: A Guide

Trees are non-linear data structures that store data hierarchically and are made up of nodes connected by edges. Here’s how to implement it in Python using bigtree.

Image: Shutterstock / Built In
Anmolika Singh Anmolika Singh
Updated on October 24, 2024

Gale-Shapley Algorithm Explained

The Gale-Shapley algorithm is a deferred acceptance algorithm used in matching theory to solve the Stable Marriage Problem. Here’s how it works and how to apply it in Python.

Image: Shutterstock / Built In
Anthony Corbo Anthony Corbo
Updated on October 24, 2024

What Are Python Algorithms?

Python algorithms provide a detailed set of instructions by which you can process data for a specific purpose. The most well-known are sorting and graph.

Image: Shutterstock / Built In