This tutorial shows you how to delete all files in a folder using different Python libraries. We'll also demonstrate how to only delete files with a specific extension.
This tutorial shows how to generate random numbers in Python using the Random module. We'll use this to randomly choose items from a Python list.
Want to learn more programming languages? We've combined each of our comprehensive VBA reference guides into a single bundle with over 200 tips and macros covering the 125 most important topics in VBA.
Tell me more
This tutorial shows you how to perform Python set operations, like adding and removing items, and finding the union, intersection, and difference between sets.
Logging info is not enabled by default. This tutorial teaches you how to use the Python logging module to log info, errors and exceptions in your Python script.
With Python OS, you can create and delete files and folders. We're going to demonstrate how to control your files and folders in this Python tutorial.
We created a suite of 6 VBA cheat sheets with over 200 tips showing you everything you need to know to start making power Excel applications. Take a look!
This tutorial explains how to open files using Python OS. The Python OS module makes it easy to launch files or applications using built-in system commands.
This week, we're going to use the Python OS module to show you how to list all files in a folder using the Python OS listdir and walk methods.
Let's introduce the Python OS module by demonstrating how to get and set your current working directory using the Python chdir and getcwd methods.
This tutorial shows you how to add text and draw shapes, like lines, rectangle, circles, and polygons, on images using the Python OpenCV library.
This tutorial explains how to perform Python image manipulation tasks, like resizing, blurring, and cropping, using the Python Pillow library.
subscribe via RSS
Grab a copy of our Python Developer Kit, with over 100 pre-built Python code examples.