DEV Community

Day 10 of 30 Days of Python Projects: Daily Market Sales Tracker

πŸš€ Day 10 – Loops in Action (Python)

Welcome to Day 10 of my 30 Days of Python Projects challenge! πŸŽ‰

Today’s project focuses on loops and how they can be used to solve a real-world problem faced daily by traders in Nigerian open markets.

πŸ”— GitHub Repository:

πŸ‘‰ https://github.com/kinspire-cyber/30DaysOfPythonProjects/tree/main/Day10_Daily_Market_Sales_Tracker


🌍 Problem Background (Nigerian Context)

In markets like Balogun, Ogbete, and Ariaria, many traders:

  • Record sales in notebooks πŸ“’
  • Write figures on loose papers 🧾
  • Or rely purely on memory 😬

At the end of the day, questions like these become hard to answer:

  • How much did I sell today?
  • How many transactions did I make?
  • What was my average sale?

Manual calculations are slow, stressful, and error-prone.


❗ The Real-World Problem

Most market traders lack:

  • Automatic sales summation
  • Daily performance insights
  • Simple digital tools for record keeping

This project solves that using basic Python loops.


πŸ’‘ Project Idea: Daily Market Sales Tracker

The Daily Market Sales Tracker is a simple Python program that:

  • Accepts multiple sales values
  • Stops input when the user enters 0
  • Calculates:
    • Total sales
    • Number of transactions
    • Average sale value

All using loops and basic logic.


🧠 Python Concepts Practiced (Day 10 Focus)

This project helped reinforce:

  • while loops
  • Accumulators (total, count)
  • Conditional logic inside loops
  • User input handling
  • Clean output formatting

Perfect for beginners learning loops πŸ”


Top comments (0)