Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Any variable with 'l' at the end is a list, any variable with an 's' at the end is a string
- #The original post
- post = '#0#######1 #######2######## #######4#######5 #######6#######7 #######8#######9 #######0#######1 #######2######## #######4#######5 #######6#######7 #######8#######9 #######0#######1 #######2######## #######4#######5 #######6#######7 #######8#######9 #######0#######1 #######2######## #######4#######5 #######6#######7 #######8#######9 #######0###0#4#4 ###0#4#1#######1 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######2###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0#######8 ###2###0###2###0 ###2###0#######5 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###0#4#4 ###0#4#1######## ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###7#4#####2###0 ###2###0###2###0 ###7#4#####2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######4###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###5#4#6 ###5#4#6###5#4#6 ###5#4#6###7#4## ###5#4#6###5#4#6 ###5#4#6###7#4## ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###0#4#4 ###0#4#1#######5 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###6###1 ###2###0###2###0 ###7#4#####7#4#5 ###2###0###7#4#5 ###2###0###7#4#5 ###2###0###7#4#5 ###2###0###7#4#5 ###2###0###7#4#5 ###7#4#####2###0 ###2###0###2###0 #######8###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######6###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###7#4#####2###0 ###2###0###7#4## ###2###0###2###0 ###2###0###2###0 ###2###0#######4 ###2###0###2###0 ###2###0###2###0 ###2###0###7#4## ###2###0###2###0 ###2###0###7#4## ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###0#4#4 ###0#4#1#######7 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###5#4#6###5#4#6 ###5#4#6###7#4## ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######8###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###7#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###7#4## ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###0#4#4 ###0#4#1#######9 ###2###0###2###0 ###2###0###2###0 #######0###2###0 ###2###0###2###0 ###7#4#####2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###7#4#####2###0 ###2###0###2###0 #######0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######0###2###0 ###2###0###2###0 ###2###0###7#4## ###2###0###2###0 ###2###0###7#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###7#4## ###2###0###2###0 ###2###0###7#4## ###2###0###2###0 ###2###0###0#4#4 ###0#4#1#######1 ###2###0###2###0 ###2###0###5#4#6 ###7#4#####5#4#6 ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###5#4#6 ###7#4#####5#4#6 ###5#4#6###2###0 ###0#4#4###0#4#1 #######2###2###0 ###2###0###7#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###5#4## ###2#4#6###7#4## ###2###0###0#4#4 ###0#4#1######## ###2###0###2###0 ###7#4#####2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###7#4#####2###0 ###0#4#4###0#4#1 #######4###2###0 ###2###0###7#4## ###2###0###7###0 ###2###0###7###8 ###2###0###6###5 ###2###0###6###7 ###2###0###6###8 ###2###0###6#4#6 ###2###0###7###0 ###2###0###7###7 ###2###0###7###7 ###2###0###6#4## ###2###0###6###5 ###2###0###6#4#4 ###2###0###6#4#4 ###2###0###6#### ###2###0###6###8 ###2###0###6###5 ###2###0###6#4## ###2###0###7#4## ###2###0###0#4#4 ###0#4#1#######5 ###2###0###2###0 ###7#4#####2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#5###2###0 ###7#4#####2###0 ###0#4#4###0#4#1 #######6###2###0 ###2###0###7#4## ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###5#4#6 ###5#4#6###7#4## ###2###0###0#4#4 ###0#4#1#######7 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###0#4#4###0#4#1 #######8###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###0#4#4 ###0#4#1#######9 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0 ###2###0###2###0'
- #Make the post into a list object with each character as an item so that it can be worked with
- postl = []
- for i in post:
- postl.append(i)
- #Make a function that when given text in a list form, it reverses it
- def reversetext(original):
- reversed = []
- a=len(original)
- while a>=0:
- reversed.append(original[a-1])
- a=a-1
- return reversed
- postreversedl = reversetext(postl)
- #Remove all of the spaces from the post
- postreversednsl = []
- for i in postreversedl:
- if i != " ":
- postreversednsl.append(i)
- #Rebuild the post with every 4th character
- b=0
- c=1
- d=2
- e=3
- f=len(postreversednsl)
- postreversedns41l = [] #Reversed post with no spaces split into 4 lines, line 1 as a list
- postreversedns42l = [] #Reversed post with no spaces split into 4 lines, line 2 as a list
- postreversedns43l = [] #Reversed post with no spaces split into 4 lines, line 3 as a list
- postreversedns44l = [] #Reversed post with no spaces split into 4 lines, line 4 as a list
- while e<f:
- postreversedns41l.append(postreversednsl[b])
- b=b+4
- postreversedns42l.append(postreversednsl[c])
- c=c+4
- postreversedns43l.append(postreversednsl[d])
- d=d+4
- postreversedns44l.append(postreversednsl[e])
- e=e+4
- #Make all of the #s in line 1 3s, and make the result a simpler name
- postreversedns413l = [] #Reversed post, no spaces, line 1 when split every 4 characters, with 3s instead of #s
- for i in postreversedns41l:
- if i=='#':
- postreversedns413l.append('3')
- else:
- postreversedns413l.append(i)
- #Reverse the line and give it a better name
- line = reversetext(postreversedns413l)
- #Split the line based on the 04013X repetitions
- split = []
- z=0
- y=5
- x=0
- w=len(line)
- while y<=w:
- search = ''
- search = search.join(line[z:y])
- if search=='04013':
- split.append(line[x:z-1])
- split.append(line[z:y+1])
- x=y+1
- z=z+1
- y=y+1
- #Join each item in split into a string
- splitjoined = []
- for i in split:
- joined = ''
- joined = joined.join(i)
- splitjoined.append(joined)
- #Remove the 04013X lines
- almostthere=[]
- for i in splitjoined:
- if i[:-1]!='04013':
- almostthere.append(i)
- #Decode the lines into ASCII and make it into a separate list
- decoded = []
- for i in almostthere:
- decoded.append(''.join([chr(int(''.join(c), 16)) for c in zip(i[0::2],i[1::2])]))
- #Yea thats some HEX to ASCII code I pulled from the interwebs cause decode and binascii wouldn't work
- #Display the output
- for i in decoded:
- print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement