Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, save the code in a hello_world.py
file and use the python
command.
Sometimes we’ll want to create a standalone executable. While Python is an interpreted language, we can use tools like PyInstaller
to package our scripts into executables.
First, install PyInstaller
using pip:
Then, package the script into an executable:
We can then execute the built executable directly.
Now that we can run and build basic Python programs, let’s learn more about the language.