add practice 3 and 4

This commit is contained in:
Kaehvaman 2024-11-06 23:12:47 +04:00
parent 316ac4eb4f
commit 3d77977833
5 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
def f(A, B):
return ((A and B) == ((not B) <= (not A))) ^ A
print("A B f")
for A in (0, 1):
for B in (0, 1):
print(A, B, f(A, B))

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB