Skip to content

Instantly share code, notes, and snippets.

@drvenabili
Created May 2, 2017 06:24
Show Gist options
  • Save drvenabili/c21e2978af95693ab7d1b398234a6e9a to your computer and use it in GitHub Desktop.
Save drvenabili/c21e2978af95693ab7d1b398234a6e9a to your computer and use it in GitHub Desktop.
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