These basic Python projects can help demonstrate your skills and enhance your resume. Each project highlights different aspects of Python programming.
This application allows users to add, remove, and view tasks. It can be developed as a command-line application.
tasks = []
def display_tasks():
if not tasks:
print("No tasks found.")
else:
for i, task in enumerate(tasks, start=1):
print(f"{i}. {task}")
while True:
print("\nMenu:")
print("1. Add Task")
print("2. Remove Task")
print("3. View Tasks")
print("4. Exit")
choice = input("Choose an option: ")
if choice == '1':
task = input("Enter task: ")
tasks.append(task)
elif choice == '2':
display_tasks()
index = int(input("Enter task number to remove: ")) - 1
if 0 <= index < len(tasks):
tasks.pop(index)
else:
print("Invalid task number.")
elif choice == '3':
display_tasks()
elif choice == '4':
break
else:
print("Invalid choice.")
Create a basic calculator that can perform operations such as addition, subtraction, multiplication, and division.
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):
if y == 0:
return "Cannot divide by zero!"
return x / y
while True:
print("\nCalculator Menu:")
print("1. Add")
print("2. Subtract")
print("3. Multiply")
print("4. Divide")
print("5. Exit")
choice = input("Choose an operation: ")
if choice in ['1', '2', '3', '4']:
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
if choice == '1':
print(f"Result: {add(num1, num2)}")
elif choice == '2':
print(f"Result: {subtract(num1, num2)}")
elif choice == '3':
print(f"Result: {multiply(num1, num2)}")
elif choice == '4':
print(f"Result: {divide(num1, num2)}")
elif choice == '5':
break
else:
print("Invalid choice.")
The ATM simulator allows users to perform basic banking functions, such as checking their balance, depositing money, and withdrawing money.
balance = 1000.0
while True:
print("\nATM Menu:")
print("1. Check Balance")
print("2. Deposit Money")
print("3. Withdraw Money")
print("4. Exit")
choice = input("Choose an option: ")
if choice == '1':
print(f"Your current balance is: ${balance:.2f}")
elif choice == '2':
amount = float(input("Enter amount to deposit: "))
balance += amount
print(f"${amount:.2f} deposited successfully.")
elif choice == '3':
amount = float(input("Enter amount to withdraw: "))
if amount > balance:
print("Insufficient funds!")
else:
balance -= amount
print(f"${amount:.2f} withdrawn successfully.")
elif choice == '4':
break
else:
print("Invalid choice.")
Create a budget tracker that allows users to input income and expenses, categorize them, and visualize their spending.
incomes = []
expenses = []
while True:
print("\nBudget Tracker Menu:")
print("1. Add Income")
print("2. Add Expense")
print("3. View Summary")
print("4. Exit")
choice = input("Choose an option: ")
if choice == '1':
amount = float(input("Enter income amount: "))
category = input("Enter income category: ")
incomes.append({'amount': amount, 'category': category})
elif choice == '2':
amount = float(input("Enter expense amount: "))
category = input("Enter expense category: ")
expenses.append({'amount': amount, 'category': category})
elif choice == '3':
total_income = sum(item['amount'] for item in incomes)
total_expenses = sum(item['amount'] for item in expenses)
balance = total_income - total_expenses
print(f"Total Income: {total_income:.2f}")
print(f"Total Expenses: {total_expenses:.2f}")
print(f"Net Balance: {balance:.2f}")
elif choice == '4':
break
else:
print("Invalid choice.")
Develop a quiz application that quizzes users on various topics, keeping track of scores and providing feedback.
questions = {
"What is the capital of France?": "Paris",
"What is 2 + 2?": "4",
"What is the color of the sky?": "blue",
}
score = 0
for question, answer in questions.items():
user_answer = input(question + " ")
if user_answer.strip().lower() == answer.lower():
print("Correct!")
score += 1
else:
print("Wrong! The correct answer is:", answer)
print(f"Your final score is: {score}/{len(questions)}")
Completing these projects can significantly enhance your Python skills and make your resume stand out. Each project showcases your ability to solve problems and create functional applications.