This is python code to simulate logic
to run it:
python main.py
this will print a test log similair to this:
Testing 'And' part.
A |B |Q
0 |0 |0
0 |1 |0
1 |0 |0
1 |1 |1
Testing 'Or' part.
A |B |Q
0 |0 |0
0 |1 |1
1 |0 |1
1 |1 |1
Simulating Logic Circuits in Python
This is python code to simulate logic
to run it:
python main.py
this will print a test log similair to this:
Testing 'And' part.
A |B |Q
0 |0 |0
0 |1 |0
1 |0 |0
1 |1 |1
Testing 'Or' part.
A |B |Q
0 |0 |0
0 |1 |1
1 |0 |1
1 |1 |1
Simulating Logic Circuits in Python
GNU Affero General Public License v3.0