0 Members and 1 Guest are viewing this topic.
#rbuttsort.py# FOR PRODUCING A (RAINBOW) FIBONACCI BUTTSORTctags = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'purple', 'indigo', 'blue', 'green', 'yellow', 'orange']out = ''i = 0print 'What would you like buttsorted today?\n',sentence = str(raw_input(">>> "))for x in sentence: if x == ' ': out = out + ' ' continue i = i + 1 if i > 11: i = 0 out = out + '[color=' + ctags[i] + ']' + x + '[/color]' f = open('out.txt', 'w')f.write('[b][i]' + out + '[/i][/b]\n')f.close()print 'Enjoy your buttsort.',
str(raw_input(">>> "))
I never mean to say things ... negativley...I am a bit socialy aqward so I often dont pick up on sarcasm or recognize myself being rude......I am sorry for any offence...
Quote from: Roboman on January 17, 2013, 09:26:52 pm Wut is a buttsort? Quote from: epic7 on January 17, 2013, 09:36:35 pm Buttsort? What's that supposed to mean Quote from: Art_of_camelot on January 18, 2013, 12:21:22 am And what in the world is a buttsort ?
Wut is a buttsort?
Buttsort? What's that supposed to mean
And what in the world is a buttsort ?
According to the interwebz : "it involves zipping the string with a cycled list of the underline and overline function"