Abhishek Sharma

Started my Data Science journey in my 2nd year of college and since then continuously into it because of the magical powers of ML and continuously doing projects in almost every domain of AI like ML, DL, CV, NLP.

Python Tutorials MLP Feature Image

Python Program to Find All Files with .txt Extension Present Inside a Directory – 2025

Hey guys, in this blog we will see a Python Program to Find All Files with .txt Extension Present Inside a Directory. Example 1: Using glob Output file3.txtfile2.txtfile1.txt Here we have used the glob() python package to get all the ‘.txt’ files. We have used glob.glob(“*.txt”) to get a list of all “.txt” files. Example 2: Using

Python Program to Find All Files with .txt Extension Present Inside a Directory – 2025 Read More »

Scroll to Top