Python - Hello World
Step 1: Install Python
Download and install Python from the official website: https://www.python.org/downloads/
Step 2: Write the "Hello, World!" Program
Create a new file named hello.py and add the following code:
python# hello.py
print("Hello, World!")
Step 3: Run the Program
Open your terminal or command prompt, navigate to the directory containing hello.py, and run:
shpython hello.py
You should see the output:
shHello, World!
Explanation
print("Hello, World!"): This line outputs the text Hello, World! to the console.