file_ascii = [(ord(c)) for c in contents]
f_file = []
for x in range (0, len(file_ascii)):
if file_ascii[x] != 32:
file_ascii2 = (file_ascii[x])
file_ascii2 = (offset) + (file_ascii2)
if file_ascii2 > 126:
file_ascii2 = (file_ascii2) - 94
print (file_ascii2)
file_ascii2 = [(chr(i)) for i in file_ascii2]
f_file.append(file_ascii2)
everything in the list 'contents' is supposed to be turned into its equivalent ascii code. however when 'file_ascii2' is turned back into normal letters, some of it is already a normal letter, even thought it has been added and subtracted from already. also when the code is run with
file_ascii2 = [(chr(i)) for i in file_ascii2]
as a comment, 'file_ascii2' is proven to be all integers