Skip to content

Commit

Permalink
Create condition_list.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatimloha authored Sep 6, 2024
1 parent 63790f8 commit 568ec54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Day-10/condition_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os
folders = input("give the folder name with space").split()

for folder in folders:
files = os.listdir(folder)
print("=== listing file as per the folder -" + folder)

for file in files:
print(file)

0 comments on commit 568ec54

Please sign in to comment.