Compact tkinter calc #159
gilch
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Inspired by https://www.reddit.com/r/Python/comments/ofr75b/i_made_a_calculator_with_17_lines_of_code/.
Mine's 13 though. I do think the mod/floordiv computed indexes are unpythonic. My instinct would be to restructure the data for readability, perhaps as a list of strings per row (easily split) or maybe a pair-keyed dict, but overall, that would be longer.
Beta Was this translation helpful? Give feedback.
All reactions