Skip to content

Instantly share code, notes, and snippets.

@tonussi
Last active December 27, 2015 06:39
Show Gist options
  • Save tonussi/7282711 to your computer and use it in GitHub Desktop.
Save tonussi/7282711 to your computer and use it in GitHub Desktop.
Script para gerar um pouco da gramática da questão 2 (trabalho de máquinas)
#!/usr/bin/python
print 'a' + 'b' + 'c'
gera = ''
for y in range(0, 20):
temp = y*'a'
for k in range(0, y + y):
temp2 = k * 'b'
for s in range(0, y):
gera += temp + temp2 + s * 'c'
print gera
gera = ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment