Last active
December 27, 2015 06:39
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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