Remix.run Logo
Z3 API in Python: From Sudoku to N-Queens in Under 20 Lines(ericpony.github.io)
112 points by amit-bansil 13 hours ago | 5 comments
stevesimmons 8 hours ago | parent | next [-]

It's worth noting these notes are 11 years old. The first give-away was the comment that in Python 3/2 is an integer, which is indeed true in Python 2 but not in Py3.

For modern users of Z3, you'd want to do `pip install z3-solver` rather than use `Z3Py` mentioned at the very bottom of this doc.

brap 37 minutes ago | parent | prev | next [-]

That’s a very clean API.

almostgotcaught 8 hours ago | parent | prev | next [-]

https://www.hakank.org/z3/

__alexander 2 hours ago | parent [-]

Thank you for the link.

skopje 9 hours ago | parent | prev [-]

Very good to see all this in one short page!