You are browsing as a guest. Sign up (or log in) to start making projects!

Python Cashier System

  • 1 Devlogs
  • 4 Total hours

Python Cashier System

Ship #1 Changes requested

Built a terminal cashier system in Python that takes product orders, validates inputs, applies a 15% discount, and prints an ASCII receipt. The hardest part was fixing the input validation loop — I kept crashing the program by putting input() outside the while loop and had to rewrite the whole function. Honestly most proud of the receipt formatting, seeing those = borders line up perfectly in the terminal was super satisfying. To test it, just run python Register.py in your terminal and follow the prompts.

  • 1 devlog
  • 4h
Try project → See source code →
Open comments for this post

3h 33m 18s logged

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.

1
0
43

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…