1. Simple Calculator
def calculator():
try:
number1 = float(input("Enter the first number: "))
action = input("Action (+, -, *, /): ")
number2 = float(input("Enter the second number: "))
if action == '+':
print(f"Result: {number1 + number2}")
elif transaction == '-':
print(f"Result: {number1 - number2}")
elif transaction == '*':
print(f"Result: {number1 * number2}")
elif transaction == '/':
print(f"Result: {number1 / number2}") if number2 != 0 else print("Error: Dividing by zero cannot be done!")
else:
print("Invalid transaction!")
except ValueError:
print("Please enter a valid number!")
calculator()
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Random Password Generator
import random
import string
def create_password(length=12):
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for _ in range(length))
return password
print(f"Generated Password: {create_password()}")
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3. Number Guessing Game
import random
def guess_game():
target = random.randint(1, 100)
guess_right = 5
print("Guess a number between 1 and 100!")
while guess_right > 0:
try:
guess = int(input("Your guess: "))
if guess == target:
print("Congratulations! You guessed correctly.")
break
elif guess > target:
print("Enter a smaller number!")
else:
print("Enter a larger number!")
guess_right -= 1
print(f"Your remaining rights: {estimation_right}")
except ValueError:
print("Please enter a valid number!")
if guess_right == 0:
print(f"Sorry, you lost! Correct number: {target}")
guess_game()
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4. Weather Application (API Usage)
import requests
API_KEY = "YOUR API_KEY" # Enter your OpenWeatherMap API key here
city = input("Enter city name: ")
url = f"http://api.openweathermap.org/data/2.5/weather?q={city}&appid={API_KEY}&units=metric&lang=tr"
response = requests.get(url)
data = response.json()
if data == 200:
Achieve Success with
print(f"Weather for {city}: {data}")
print(f"Temperature: {data}°C")
else:
print("City not found!")
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5. Web Scraper (Data Extraction Project)
import requests
from bs4 import BeautifulSoup
url = "https://news.ycombinator.com/" # Sample news site
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
news = soup.find_all("a", class_="storylink") # Get news headlines
for idx, news in enumerate(news, 1):
print(f"{idx}. {news.text} - {news}")
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6. QR Code Generator
import qrcode
def qr_code_create(text):
qr = qrcode.make(text)
qr.save("qrcode.png")
print("QR code created and saved!")
text = input("Enter the text you want to convert into a QR code: ")
qr_code_generate(text)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7. Simple Chatbot
import random
answers = {
"hello": ,
"how are you": ,
"see you": ,
}
def chatbot():
while True:
user_input = input("You: ").lower()
if user_input in answers:
print(f"Bot: {random.choice(answers)}")
else:
print("Bot: I don't understand, please say something different.")
chatbot()
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8. Simple Web Application with Flask
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return "Hello, a simple web page with Flask!"
if __name__ == '__main__':
app.run(debug=True)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9. Automatic Email Sending
import smtplib
GMAIL_USER = "youremail@gmail.com"
GMAIL_SIFRE = "your password"
def email_send(recipient, subject, message):
mail = f"Subject: {subject}\n\n{message}"
with smtplib.SMTP("smtp.gmail.com", 587) as server:
server.starttls()
server.login(GMAIL_USER, GMAIL_PASSWORD)
server.sendmail(GMAIL_USER, recipient, mail)
email_send("buyermail@gmail.com", "Test Subject", "This is a test email.")
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10. Facial Recognition System (OpenCV)
import cv2
yuz_casc = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")
camera = cv2.VideoCapture(0)
while True:
reject, frame = camera.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
faces = face_casc.detectMultiScale(grey, 1.1, 4)
for (x, y, w, h) in faces:
cv2.rectangle(frame, (x, y), (x + w, y + h), (255, 0, 0), 2)
cv2.imshow("Face Recognition", frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
camera.release()
cv2.destroyAllWindows()
Want more projects? Which project would you like me to explain in detail? 🚀
1. Beginner Python Projects
✅ Calculator
- Receives two numbers and action types (+, -, *, /) from the user and displays the result.
✅ Password Generator
- Generates strong passwords using random letters, numbers and special characters.
✅ To-Do List
- Allows the user to add or remove tasks, stores data in a file.
✅ Simple Notepad (File Operations)
- Saves the notes taken from the user to a file and can read them back.
✅ Number Guessing Game
- Allows the user to guess by determining a random number and gives clues.
✅ Word Counter
- Calculates the number of words and letters in a text entered by the user.
2. Intermediate Python Projects
✅ Weather Application (API Usage)
- Pulls weather data for a specific city using the OpenWeatherMap API.
✅ Web Scraper (Data Extraction Project)
- Pulls data from a specific website (e.g. news headlines).
✅ Password Manager
- An application that securely stores and manages user passwords.
✅ Email Automation
- A Python program that automatically sends e-mail using SMTP.
✅ QR Code Generator and Reader
- It converts the text entered by the user into a QR code and reads the QR codes.
✅ Simple Blog Site with Flask
- A simple web application where users can share articles.
✅ Social Media Bot (Instagram or Twitter Automation)
- Automates certain operations using Selenium or Tweepy.
✅ File Editor
- Separates files in a given folder by type.
✅ Voice Assistant
- A bot that recognizes the user's voice commands and performs simple operations.
3. Advanced Python Projects
✅ Movie Recommendation System with Machine Learning
- An algorithm that recommends new movies based on the movies the user has watched.
✅ Facial Recognition System
- Performs facial recognition and person verification using OpenCV.
✅ Automatic Stock Tracking System
- A system that manages product stocks for e-commerce or stores.
✅ Financial Data Analysis Application
- An application that performs stock analysis using Pandas and Matplotlib.
✅ Chatbot (Artificial Intelligence Supported Chat Bot)
- A bot that can chat naturally with users using the GPT API or Rasa.
✅ E-Commerce Website (with Django or Flask)
- A platform where users can view and order products.
✅ Cryptocurrency Tracking Application
- A desktop or web application that tracks real-time cryptocurrency prices.
✅ Game Development (with Pygame)
- A simple Flappy Bird or Snake Game .
✅ Blockchain and Crypto Wallet Application
- You can create a simple blockchain network and manage transactions with Python.