This is an example of a program originally written for tkinter. The length is roughly 1/2 the original program. However, it's the readability of the lines that is the more important difference.
Note - need to add formatting of the text being output so that it's closer to looking like dollars and cents. This can be done by modifying these 4 lines of code:
Use f-strings insead of the variable names directly as paramters to
update. It seemed better to keep the code simpler looking than add the formatting.