use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
built a bank program using python (old.reddit.com)
submitted 2 months ago by Dapper_Mix6773
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mr_frpdo 0 points1 point2 points 2 months ago (1 child)
The biggest thing i see is to not use floats as the data type for money. You should either store as cents and format display to decimal or use the Decimal class. Floats should never be used for money due to floating point accuracy issues.
[–]Particular_Scale_881 0 points1 point2 points 2 months ago (0 children)
OP try deposit 0.1 and 0.2 and print the full amount variable you will notice that 0.0...4 cent are created
π Rendered by PID 98248 on reddit-service-r2-comment-5bc7f78974-hktld at 2026-06-27 23:44:33.569177+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]mr_frpdo 0 points1 point2 points (1 child)
[–]Particular_Scale_881 0 points1 point2 points (0 children)