Google+ Tools
Make Google+ profile picture
Make Google plus banners for profile
Create and share your Google Plus profile banners.

Profile image for mrk studios NunAttack on July 9, 2012

First try by myself at anything biggish, kind of sucky

Language
Python
Tags

TextBlock


import textwrap
i = ''
ns = ''
secretword = 'Ring of Fire'
fin = ''
tw = textwrap
f = open('theroadnottaken.txt') #Put the file name here!
print 'The raw text is:\n'
fr = f.read()
print fr, '\n\n'
f.close()
fns = fr.replace(' ',"")
fnsq = fns.replace("'", '')
fnq = fnsq.replace('"', '')
for line in fnq.split('\n'):
    if line.strip():
        ns += line + '\n'

print 'The condensed text is:\n', ns, '\n\n'
mk = 0
slen = len(ns)
sit = slen / 24
for secretword in range(0, sit): #This is a very shitty way of doing things.
    for i in ns[mk:slen]:
        fin = fin + i
        if len(fin) == 6:
            fin = fin + ('\n')
        elif len(fin) == 12:
            fin = fin + ('\n')
        elif len(fin) == 18:
            fin = fin + ('\n')
        elif len(fin) == 24:
            print '\nNEXT\n'
            mk = mk + len(fin)
            print fin
            fin = ''
            break

Comments

blog comments powered by Disqus