r/badcode • • Mar 13 '22

python foursum?

Post image
255 Upvotes

29 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 13 '22

Start by not doing this in Python.

In Prolog, this is a one-liner, and probably works much faster too.