// saves encrypted in txt file
output = open("encrypted.txt", "w")
for i in range(len(values)):
output.write(str(values[i]) + " ")
output.close()
// read and decrypts
print(readAndDecrypt("encrypted.txt"))
After Change
// saves encrypted in txt file
output = open("encrypted.txt", "w")
for v in values:
output.write(str(v) + " ")
output.close()
// read and decrypts