- Python Basics
- Python - Introduction
- Python - Install
- Python - Syntax
- Python - Hello World
- Python - Comments
- Python - Variables
- Python - Data Types
- python - Type Casting
- Python - Strings
- Python - Operators
- Python Advanced
- Python - Comprehensions
- Python Expert
- Python - OOPs
- Python - Iterators
- Python - Context Managers
- Python Specialized
- Python - Multithreading
- Python - Multiprocessing
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.