Skip to content

Commit

Permalink
source code6-projects
Browse files Browse the repository at this point in the history
  • Loading branch information
fazelelham32 authored Aug 30, 2024
1 parent 496cba7 commit 436e046
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 6-1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

# Created by Hamidreza Talebi

import re

def main():
fh = open('raven.txt')
for line in fh:
if re.search('(Len|Neverm)ore', line):
print(line, end='')


if __name__ == "__main__": main()






17 changes: 17 additions & 0 deletions 6-2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# Created by Hamidreza Talebi

import re

def main():
fh = open('raven.txt')
for line in fh:
print(re.sub('(Len|Neverm)ore','###', line), end='')

if __name__ == "__main__": main()






0 comments on commit 436e046

Please sign in to comment.