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.
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 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.
This tutorial shows you how to read text from images using the Python Pytesseract wrapper for Google's Tesseract engine. OCR lets you convert images to strings.
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!
Python face detection is easy with the OpenCV library. We'll walk you through the entire process, including how to detect eyes and smiles using Python OpenCV.
We want to show you how to debug a Python script using the Python pdb debugger module. Pdb is a built-in Python utility specifically for code debugging.
This article shows how you to read PDF files in Python using the PyPDF2 library. You can use this library to extract data from PDFs stored on your computer or online.
Today, we'll explain Python's if __name__ == '__main__' statement, which is used to check whether a Python file was run directly or imported by another file.
This article shows you three ways to calculate the execution time of a Python script using the default time module, the timeit module, and the %%timeit command.
subscribe via RSS
To access part 2 of my free online Python training program, enter your email address below.