Skip to content

Instantly share code, notes, and snippets.

@itayniv
Created March 14, 2019 18:13
Show Gist options
  • Save itayniv/4a91f35842339a1ad8d5bed8103e440d to your computer and use it in GitHub Desktop.
Save itayniv/4a91f35842339a1ad8d5bed8103e440d to your computer and use it in GitHub Desktop.
span = 6
for j in range(storiesCount):
print(' ')
print("(" + str(j) + ")")
print(' ')
firstPart = random.choice(firstSent).split(' ')
firstPartArray = [" ".join(firstPart[i:i+span]) for i in range(0, len(firstPart), span)]
for line in firstPartArray:
print(line)
secondPart = random.choice(lastSent).split(' ')
secondPartArray = [" ".join(secondPart[i:i+span]) for i in range(0, len(secondPart), span)]
print(' ')
for line in secondPartArray:
print(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment