def main():
 key = []
 mess=input('Write Text: ')
 for ch in mess:
     x = ord(ch)
     x = x-3
     x = chr(x)
     key.append(x)
 print("Your code message is: ",key)
 outFile = open("Encryptedmessage.txt","w")
 print(key, file=outFile)
main()
so far i have written this a it works fine but my problem is the output is
Write Text: the
Your code message is:  ['q', 'e', 'b']
and i was wondering how you would get rid of the punction so the output would be
Write Text: the
Your code message is:  qeb
 
     
     
    