r/pythontips • • Feb 12 '22

Python3_Specific How to run your first program?!?

So, I just finished coding my first program ( a notepad) in python using pycharm. But I’m confused on how to use it. Everytime I save it, it’s just the script when run it. How do I finalize it and make I useable as if it was a note pad I downloaded.

49 Upvotes

9 comments sorted by

26

u/ciezer Feb 12 '22

Python is not a language that compiles into an executable, it's an interpreted language which means it's always going to be a script.

There is the built in zipapp module that puts you're script into a zip file to run and transport multi-file programs a bit easier but it still needs python to be installed on every computer that will use it.

There are third party programs to freeze your script into an executable, but are usually going to be slower than programming in a compiled language since the freezing process usually bakes in the python interrupter.

If you want to program in python and make the program usable for others other than these, you'll most likely be making a web app that runs in a browser

8

u/[deleted] Feb 12 '22

This is helpful as I had the same question. Thank you!!

5

u/Azearia Feb 13 '22

There are things like cpython and nuitka that basically turn the code into c and then compile it as if it was c code

17

u/BlobbyMcBlobber Feb 12 '22

This post is so cute. Saving it!

6

u/mateo8421 Feb 12 '22

I feel like this post is like a virgin asking which kindergarten to send her child into...

5

u/panzerboye Feb 12 '22

Lol this post is so cute!

-11

u/Blopsk Feb 12 '22

Download an IDE like pycharm. Open the script there and click the run button