Python is a high-level, interpreted programming language that is easy to read, write, and learn. It was created by Guido van Rossum and released in 1991.
It emphasizes code readability and uses simple syntax that lets developers express concepts with fewer lines of code.
Python is one of the most loved and in-demand languages in the world. Here’s why:
Feature | Benefit |
---|---|
Easy to Learn | Clear, readable syntax perfect for beginners |
Versatile | Used in web, data science, AI, automation, games, etc. |
Huge Ecosystem | Tons of libraries (like Django, Pandas, TensorFlow) |
Community Support | Millions of users, tons of tutorials and help online |
Cross-Platform | Works on Windows, Linux, macOS |
Python is used in:
Step 1: Check if Python is already installed
Open terminal/command prompt:
python --version
If installed, it will show something like:
Python 3.11.4
If not, follow the next steps.
Step 2: Download and Install Python
Step 3: Verify the Installation
After installation, open terminal or command prompt:
python
You should see the interactive Python shell:
>>> print("Hello, Python!")
Hello, Python!
Let’s create a simple Python program that prints a message.
🖥️ Method 1: Using Terminal or Shell
print("Hello, World!")
Method 2: Using a .py
file
1. Open any code editor (e.g., VS Code)
2. Create a new file hello.py
3. Write:
print("Welcome to Python programming!")
4. Run it from terminal:
python hello.py
Output
Welcome to Python programming!
print()
command.welcome.py
→ prints your namemath.py
→ prints the result of 5 + 3 * 2
Akash Kumar
11
Leave a Reply