Files
Perkuliahan/operator logika.py
Chizuui 1795fa1c2f First
2025-11-27 00:38:38 +07:00

17 lines
241 B
Python
Executable File

a = True
b = False
#Logika AND
c = a and b
print("%r and %r = %r" % (a,b,c))
#Logika OR
c = a or b
print("%r or %r = %r" % (a,b,c))
#Logika NOT
c = not a
print("not %r = %r" % (a,c))
c = not b
print("not %r = %r" % (b,c))