Python Get Started

First Steps

Writing Your First Python Program

Create a file named hello.py with the following code:

print("Hello, World!")

Running Python Scripts

Run the script from the command line:

python hello.py

Using Python Interactively

Start the Python shell by running python in your terminal:

>>> print("Hello from REPL")

Use the shell for testing code snippets, performing calculations, and exploring Python libraries interactively.