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 Create an Auto Clicker in PythonThis tutorial discusses how to create an auto clicker in Python. How to Implement Trie Data Structure in PythonThis article discusses the implementation of the trie data structure in Python. To implement, we used the list data structure. How to Select Options From Dropdown Menu With Selenium in PythonThis tutorial discusses how to select options from dropdown with selenium in Python How to Implement Topological Sort Algorithm in PythonThis tutorial will show the implementation of the topological sort algorithm in Python. How to Find Elements With Selenium in PythonThis tutorial discusses how to find elements with selenium in Python. How to Capture Screenshot With Selenium in PythonThis tutorial discusses how to capture a screenshot with selenium in Python. Install a Specific Python Package Version With pipInstall and verify an exact Python package version with pip in the intended environment. How to Add Selenium Web Driver Wait in PythonThis tutorial demonstrates how to add Selenium web driver wait in Python. How to Add Attribute to Object in PythonThis tutorial demonstrates how to add attribute to object in Python. How to Take Screenshots Using PythonIn this article, we will learn how to take screenshots with the help of the Python language. We will discuss the use of pyautogui, pillow, and pyscreenshot modules. How to Implement Multiple Decorators in PythonThis article focuses on the concept of multiple decorators. The reader will learn the basics of decorators, how it is created and implemented, and how to chain it with other decorators on a function. How to Merge Two Sorted Lists in PythonThe article includes three different methods to merge two sorted lists in Python. Two of them are in-built functions, sorted() and heapq.merge(), and the third one is a detailed approach using the while loop in Python. How to Scroll Down a Website Using Python SeleniumThis tutorial demonstrates how to automate the task of scrolling down a website using Selenium in Python. How to Open and Close Tabs in a Browser Using Selenium PythonThis tutorial demonstrates how to automatically open a new tab in a browser using Selenium in Python. How to Login to a Website Using Selenium PythonThis tutorial demonstrates automating a website's login using an automation tool known as Selenium in Python. How to Get Longest Common Substring in PythonThe article discusses three different approaches to finding the longest common substring between the two given strings in Python. The simplest approach uses three loops and is considered the naive approach to the problem. The second and third approaches use recursion and dynamic programming, respectively. How to Print a Multiplication Table in Python Using Basic Programming ConceptsThis article illustrates basic programming concepts in Python using the example of a times table. Times tables are printed for a user-defined number and user-defined range of multiples. How to Use the OpenCV solvepnp() Function to Solve the PnP ProblemThis tutorial discusses working with the solvepnp function in OpenCV in Python. How to Use OCR to Extract Text From an Image in OpenCVThis article covers everything you need to get started with optical character recognition, also known as OCR. This will guide you to learn how to detect and extract text from images and visualize this extracted text on an image in OpenCV. How to Detect Motion in Python OpenCVIn this article we go to learn how we can create a motion detection project with the help of OpenCV and Python. How to Detect Image Color Using OpenCV in PythonThis tutorial discusses how to perform image color detection using the OpenCV library in Python. How to Implement Kalman Filter Using OpenCV in PythonThis tutorial discusses how to implement kalman filter using OpenCV in Python. How to Rethrow Exception in PythonThis article discusses how to rethrow an exception in Python using the raise statement. How to Object Tracking Using OpenCVThis tutorial discusses how to perform object tracking using OpenCV in Python.