Created
April 28, 2020 06:48
-
-
Save computer-tutor/aba0bdba65837808b888af9af9e8f37f to your computer and use it in GitHub Desktop.
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
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