Skip to content

Instantly share code, notes, and snippets.

@c7h
Created February 21, 2013 10:30
Show Gist options
  • Save c7h/5003772 to your computer and use it in GitHub Desktop.
Save c7h/5003772 to your computer and use it in GitHub Desktop.
split string - fixed format
n = 8 #format
[line[i:i+n] for i in range(0, len(line), n)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment