Publishing a python app

Hey community,
I am making a python app which is related to YouTube and is only made using python.
I want to know how to publish it to Microsoft store, one more doubt is that if a user downloads it and changes it extension to .py then he can see the code of my app?

I think you will need to check with Microsoft about that. They problem have published documentation that will help you.