Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 06:48
Show Gist options
  • Save computer-tutor/aba0bdba65837808b888af9af9e8f37f to your computer and use it in GitHub Desktop.
Save computer-tutor/aba0bdba65837808b888af9af9e8f37f to your computer and use it in GitHub Desktop.
def ath(f1,f2):
l=f1.readlines()
for line in l:
if 'Athlectics' in line:
f2.write(line)
f2.write('\n')
f1 = open('/content/Athletics_data.txt', 'r')
f2 = open('/content/Sports_data.txt', 'w')
ath(f1,f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment