DEV Community

From Codecademy to Programming: My First Python Flet App For Managing Shopping List

As part of my final project for the "Fundamentals of Programming" in Codecademy Computer Science course, I wanted to build something practical that could also help me reinforce my understanding of programming fundamentals. With that in mind, I created a simple but fully functional shopping list app using Flet—a Python framework for building beautiful UIs without needing to dive into web development. This app allows users to add products, assign prices, apply sales tax (IVU), and view both subtotals and totals dynamically.

Image description

🧠 How My App Works

The app features a user-friendly interface where you can enter a product name and price, then click the "Añadir" button to add the item to a shopping list. Each item appears in a scrollable list with a delete icon. Clicking the delete icon prompts a confirmation dialog before removing the item and automatically updating the subtotal and total.

Here's what the app does under the hood:

  • Uses TextField components to collect product and price inputs.
  • Validates the input to make sure prices are positive numbers.
  • Displays the item list in a ListView, each with a delete button.
  • Shows a confirmation dialog before deleting an item using AlertDialog.
  • Keeps track of the subtotal and calculates a final total based on a custom IVU (sales tax) percentage.
  • Updates the total values dynamically as you interact with the app.

This project helped me practice key Python skills such as:

  • Conditionals
  • Functions
  • Event-driven programming
  • State management using nonlocal
  • User input validation

All wrapped up in a visually clean and responsive layout thanks to Flet.

🧪 Try It or Build on It

This was my first time building a complete app in Python, and I’m proud of how far I’ve come as a beginner. There's still a couple of things I would like to add to the app like persistent data. But for now its good enough since I want to continue with my learning of Computer Science course on Codecademy. Feel free to fork it, build on it, or use it as inspiration for your own learning.

Here’s the full source code on GitHub

https://github.com/SirSlader/Python-Coding/blob/main/portfolio_project/groceries_app/src/main.py

Thanks for reading!

I'm still learning python and programming in general. If you wanna leave a comment or tips on how to further improve my simple app it would be much appreciated.

Top comments (0)