AceLewis / my_first_calculator.py

my_first_calculator.py
4.07k stars 452 forks source link

Optimized a bit. #146

Open piotr-piatkowski opened 3 years ago

piotr-piatkowski commented 3 years ago

Yes, I know this is a joke. Still I found it so wasteful, I created a variant which is much more lazy, and starts with single case but then adds new if branches only after user provides unknown combination. This way it's self-modifying, self-learning, almost AI :-)

As another TODO - it should automatically create pull request each time it modifies itself - this would be real crowdsourcing ;-)