Luke Griffith

Site Reliability Engineer

github twitter linkedin instagram email
Show Truth Table
Dec 10, 2016
One minute read

(Git)

During the first year of university I came across a number of logic problems in revision and exams, to give me an easy way to check my work and improve my Python I created a dynamic truth table generator that outputs to the console the result of the python expresson entered into a REPL loop.

enter python expression or type exit.
        > r and q

| q      | r      | r and q |
|    True|    True|    True |
|    True|   False|   False |
|   False|    True|   False |
|   False|   False|   False |

Back to projects