3 ms·
It's a little odd to write: if color_enabled: print(added(r2.answer, color=True)) else: print(added(r2.an
by jbn 11y ago
It's a little odd to write:
if color_enabled:
print(added(r2.answer, color=True))
else:
print(added(r2.answer))
wouldn't you rather write:
print(added(r2.answer, color=color_enabled))
after adjusting color_enabled to be None or True?
- _lce0 11y agobonus: make `printAdded(answer, color)` and avoid creating the strings and returning them just to be printed great project btw!
- joshenders 11y agoYeah, I end up doing essentially this in the most recent version.