Skip to content

Instantly share code, notes, and snippets.

@fitoria
Created December 25, 2010 05:38
Show Gist options
  • Save fitoria/754707 to your computer and use it in GitHub Desktop.
Save fitoria/754707 to your computer and use it in GitHub Desktop.
foo = 'jasjajja jiwjerojfaks ojo jsodfj psdfjalsfkjo ijosijdfasjdf oqiwjfoaksjdfoj asdlfkjoije'
lista = list(foo)
for i in range(0, len(lista), 20):
lista.insert(i, '\n')
print ''.join(lista)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment