Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 28, 2020 06:48
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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