5 Easy Python Projects for Beginners 2026
5 Easy Python Projects for Beginners in India 2026 🇮🇳🐍
Are you a student in India starting your coding journey in 2026? The best way to learn Python is not by watching tutorials endlessly — but by building real projects. Whether you’re in BCA, B.Tech, or learning from YouTube at home, these beginner-friendly projects will strengthen your fundamentals and boost your confidence.
Let’s build 5 simple yet powerful Python projects step-by-step.
1️⃣ Simple Calculator (Full Code)
Every programmer starts here! This project teaches:
User input
Conditional statements
Functions
def add(a, b):
return a + b
def subtract(a, b):
return a - b
def multiply(a, b):
return a * b
def divide(a, b):
if b == 0:
return "Cannot divide by zero"
return a / b
print("Simple Calculator")
print("1. Add\n2. Subtract\n3. Multiply\n4. Divide")
choice = input("Enter choice (1/2/3/4): ")
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
if choice == '1':
print("Result:", add(num1, num2))
elif choice == '2':
print("Result:", subtract(num1, num2))
elif choice == '3':
print("Result:", multiply(num1, num2))
elif choice == '4':
print("Result:", divide(num1, num2))
else:
print("Invalid choice")
💡 Try upgrading it with a loop so it runs continuously!
2️⃣ CSV Sales Sorter for Shops 🏪
Very useful for Indian small shop owners who manage sales in Excel. This project reads a CSV file and sorts products by sales amount.
Example sales.csv:
Product,Amount
Pen,500
Notebook,1200
Bag,800
import csv
with open('sales.csv', mode='r') as file:
reader = csv.DictReader(file)
data = list(reader)
# Convert Amount to integer
for row in data:
row['Amount'] = int(row['Amount'])
# Sort by Amount descending
sorted_data = sorted(data, key=lambda x: x['Amount'], reverse=True)
print("Sorted Sales Data:")
for row in sorted_data:
print(row['Product'], "-", row['Amount'])
📌 Skills learned:
File handling
CSV module
Sorting using lambda
3️⃣ MongoDB Connection Script 🍃
If you’re learning full-stack or backend development, MongoDB is essential.
First install:
pip install pymongo
Then use this script:
from pymongo import MongoClient
# Connect to local MongoDB
client = MongoClient("mongodb://localhost:27017/")
# Create database
db = client["student_db"]
# Create collection
collection = db["students"]
# Insert sample data
student = {"name": "Amit", "course": "Python", "year": 2026}
collection.insert_one(student)
print("Data inserted successfully!")
🔥 You just connected Python with a database!
4️⃣ Simple Expense Tracker App 💰
Perfect for Indian college students managing monthly budgets.
expenses = []
while True:
print("\n1. Add Expense")
print("2. View Expenses")
print("3. Total Expense")
print("4. Exit")
choice = input("Choose option: ")
if choice == '1':
name = input("Expense name: ")
amount = float(input("Amount: "))
expenses.append((name, amount))
print("Expense added!")
elif choice == '2':
for item in expenses:
print(item[0], "-", item[1])
elif choice == '3':
total = sum(amount for _, amount in expenses)
print("Total Expense:", total)
elif choice == '4':
break
else:
print("Invalid choice")
🎯 This teaches:
Lists
Loops
Tuples
Sum function
You can later convert this into a GUI app using Tkinter!
5️⃣ Basic News Scraper 📰
Web scraping is powerful — but use it responsibly.
Install:
pip install requests beautifulsoup4
import requests
from bs4 import BeautifulSoup
url = "https://news.ycombinator.com/"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
titles = soup.find_all("span", class_="titleline")
print("Latest News Headlines:\n")
for title in titles:
print(title.text)
⚠ Always check website terms before scraping.
Skills learned:
HTTP requests
HTML parsing
Real-world data extraction
Comments
Post a Comment