-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bf5435
commit 1180ee5
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
|
||
|
||
def checkBinod(file): | ||
with open(file, "r") as f: | ||
fileContent = f.read() | ||
if 'binod' in fileContent.lower(): | ||
print( | ||
f'**************Congratulations Binod found in {f}********************') | ||
return True | ||
|
||
|
||
if __name__ == '__main__': | ||
ans = False | ||
print("************binod Detector********************") | ||
dir_contents = os.listdir() | ||
for item in dir_contents: | ||
if item.endswith('txt'): | ||
ans = checkBinod(item) | ||
if(ans is False): | ||
print('Binod not found!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am binod |