Practical solutions

Python How-To's How-To Guides

Solve the problem. Keep building. The collection of Python-related howtos

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Convert Binary to Hex in PythonThis tutorial discusses how to convert binary to hex in Python. How to Merge CSV Files in PythonThis tutorial demonstrates how to merge multiple csv files in a single pandas dataframe using the pd.concat() method. How to Covert Text File to CSV in PythonThis tutorial demonstrates how to covert a text file into a csv file. How to Parse Command Line Arguments Using PythonLearn how to parse command line arguments using Python. How to Read an Excel File Using PythonLearn how to read an excel file using Python. How to List All the Methods of a Python ModuleLearn how to list down all the available methods of a Python module. How to Fix Error - Dictionary Changed Size During IterationThis tutorial demonstrates how to resolve the runtime error dictionary size changed during iteration. How to Define a Class Global Variable in PythonThis tutorial demonstrates how to define a class global variable. The Singleton Design Pattern in PythonThis tutorial demonstrates the implementation of Singleton design pattern in Python. How to Find Methods of a Python ObjectThis tutorial demonstrates how to find methods of a Python object easily in 6 different ways. How to Transpose a Matrix in PythonLearn how to transpose a matrix in Python How to Solve Algebraic Equations Using PythonLearn how to solve algebraic equations using Python How to Read a CSV With Its Header in PythonLearn how to read a CSV with its header in Python. How to Get Data From a URL in PythonLearn how to get data from a URL in Python How to Compare Two Strings Character by Character in PythonThis article explores several methods to compare two strings character by character in Python, each with its advantages and use cases. How to Check if Two Strings Are Anagrams Using PythonLearn how to check if two strings are anagrams using Python. How to Add Key-Value Pairs to a Dictionary Within a Loop in PythonLearn how to add Key-Value pairs to a Dictionary within a loop in Python. How to Create and Access Docstrings in PythonThis tutorial demonstrates how to create and access docstrings in Python using the __doc__ attribute. How to Fix the TypeError: Object of Type NoneType Has No Len() in PythonIn this guide, we will learn how to fix the TypeError: object of type NoneType has no len() in Python. Basically, we get this error because we are passing None to the len() function, which has no length. How to Check if a String Is a Number in PythonThis tutorial demonstrates how to check if a string is a number in python. How to Print Quotes in PythonLearn how to use Quotation Marks inside Quotation Marks in Python. How to Parse Over Boolean Values in Command-Line Arguments in PythonLearn how to parse over boolean values in command-line arguments using Python How to Create a List of Tuples From Multiple Lists and Tuples in PythonLearn how to create a list of tuples and tuples from multiple lists in Python How to Strip Multiple Characters in PythonThis tutorial demonstrates how to strip or remove multiple characters from a string object in Python.