Created
May 2, 2017 06:24
-
-
Save drvenabili/c21e2978af95693ab7d1b398234a6e9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| f = open("fichier","r") | |
| f = readlines() | |
| x = 0 | |
| sample = open("sample.txt","w") | |
| for line in f: | |
| if x%20 == 0: | |
| sample.write(line+"\n") | |
| x = x+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment