
1. 🧮 Calculator
A calculator is a great starting project for beginners. Using Python, you can build a simple program that performs addition, subtraction, multiplication, and division. It’s a fun way to practice user input, basic math operations, and logical thinking.
# Simple calculator in Python
def add(x, y):
return x + y
def subtract(x, y):
return x - y
def multiply(x, y):
return x * y
def divide(x, y):
return x / y
# Input from the user
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
operation = input("Choose operation (+, -, *, /): ")
if operation == '+':
print(add(num1, num2))
elif operation == '-':
print(subtract(num1, num2))
elif operation == '*':
print(multiply(num1, num2))
elif operation == '/':
print(divide(num1, num2))
else:
print("Invalid input")
Build a fun game where the computer selects a random number, and the player tries to guess it. This project helps you practice using loops, conditionals, and random number generation in Python.
import random
number = random.randint(1, 100)
guess = None
while guess != number:
guess = int(input("Guess a number between 1 and 100: "))
if guess < number:
print("Too low!")
Create a hilarious story generator where users fill in blanks with random words like nouns, verbs, and adjectives. Python then uses those words to complete a funny or unexpected story — a great way to learn about string manipulation and user input.
noun = input("Enter a noun: ")
verb = input("Enter a verb: ")
adjective = input("Enter an adjective: ")
print(f"The {adjective} {noun} decided to {verb} all day long!")
4. Rock, Paper, Scissors Game
A classic and simple project for beginners! The user picks rock, paper, or scissors, while the computer makes a random choice. Python then compares both to decide the winner — perfect for practicing conditionals and randomization.
import random
choices = ["rock", "paper", "scissors"]
computer = random.choice(choices)
player = input("Choose rock, paper, or scissors: ")
if player == computer:
print("It's a tie!")
elif (player == "rock" and computer == "scissors") or (player == "paper" and computer == "rock") or (player == "scissors" and computer == "paper"):
print("You win!")
else:
print("Computer wins!")
Build a handy program to keep track of daily tasks! With this project, users can add, remove, and view their to-dos easily. It’s a great way to learn how to manage lists and user input in Python — simple, useful, and fun to build.
to_do_list = []
while True:
task = input("Enter a task (or 'done' to stop): ")
if task == 'done':
break
else:
to_do_list.append(task)
print("Your tasks are:")
for task in to_do_list:
print(task)