π 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:
-
whileloops - Accumulators (
total,count) - Conditional logic inside loops
- User input handling
- Clean output formatting
Perfect for beginners learning loops π
Top comments (0)