Finally finished my cashier system after way too many hours of fighting with Python. The input validation absolutely broke me — I kept testing with random inputs like “thy” or “56” and the program would either crash or loop forever because I accidentally put the input() call outside the while loop. Had to rewrite the whole choose_product() function from scratch which was annoying but it actually works perfectly now.The ASCII receipt at the end was way more fun to build though. I added a 15% discount and got everything formatting properly in EGP. Seeing those = borders line up in the terminal after buying meat, rice, and salt was weirdly satisfying.Screen recording below shows the full flow including all the invalid input handling and the final receipt. Project is basically done and I’m way too tired to touch it again lol.
Comments 1
That’s a great project ! I had the idea a while ago and if you want to add more features, the most logical extension would be a stock tracking system to tell the managers to refill certain products etc. (if not already done lol)
Sign in to join the conversation.