Open a Python script in Kindle

Multi tool use
Open a Python script in Kindle
Not sure if this question is appropriate here.
But I want to open a python script in my Kindle Paperwhite. If I convert to. DOCX the format gets upset.
I have lot of code to read through before diving deep into it. Can someone hep me?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.