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 file named hello_world.py
and use python
to execute it.
Python does not need to be compiled before it is run. However, it is generally a good practice to make your scripts executable directly from the command line.
Make the script executable by adding a shebang line at the top:
Then, change the file permissions to make it executable:
Now that we can run and execute basic Python scripts, let’s learn more about the language.