Run your first Python script
In this tutorial, we’ll create and run a basic Python hello world program.
Prerequisite
Before we begin, make sure you have uv installed on your system. You can install it following the directions from the uv documentation.
Tip
You do not have to have Python installed on your computer to run this tutorial.
Creating Your Script
Create a new directory and script:
mkdir hello-uv
cd hello-uv
Create hello.py
:
hello.py
print("Hello, World!")
Running the Script
Run your script with:
uv run hello.py
You’ll see:
Hello, World!
That’s it! You’ve successfully run your first script with Python.
Last updated on