# Note, there are a lot of ways to do this. # This just happens to be the way I wrote my solution def decode(iFile,oFile): fin = open(iFile,"r") contents = fin.read() fout = open(oFile,"w") index = 0 while index="a" and nextLetter<="z": skip = ord(nextLetter)-ord("a")+1 elif nextLetter>="A" and nextLetter<="Z": skip = ord(nextLetter)-ord("A")+1 elif nextLetter>="0" and nextLetter<="9": skip = int(nextLetter) else: skip = 8 index = index + skip + 1 fout.close() fin.close()