Python Articles

Sorted By: Most Recent
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
Bryan Pfalzgraf Bryan Pfalzgraf
Updated on October 18, 2024

How to Use Selenium for Web Scraping

Selenium is a Python library that’s used for automating web browsers to accomplish tasks like web scraping. Here’s how to do it with an example and code.

Image: Shutterstock / Built In
Jim Clyde Monge Jim Clyde Monge
Updated on October 10, 2024

How to Install Python on Windows

Python is one of the most popular and widely used programming languages. Learn three different ways to install it on Windows 10. 

Image: Shutterstock / Built In
Luca Liu Luca Liu
Updated on October 10, 2024

How to Fix Error: Externally-Managed-Environment in Pip

Error: externally-managed-environment occurs when a package manager is managing a Python environment, preventing the use of pip. Here’s how to solve it.

Image: Shutterstock / Built In
Dorothea Reher Dorothea Reher
Updated on October 08, 2024

Python Date vs. Datetime Objects Explained

Python date is an object that’s used to represent the calendar date with no time of date, while a Python datetime object includes the date and time of day. Here’s how to use them.

Image: Shutterstock / Built In