Skip to content

Commit

Permalink
binod
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravSingh9356 committed Aug 8, 2020
1 parent 2bf5435 commit 1180ee5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions binod.py
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!')
1 change: 1 addition & 0 deletions binod.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am binod

0 comments on commit 1180ee5

Please sign in to comment.