and operatori
print(5 and 3)
print(3 and 5)
print(True and 5)
print(True and -5)
print(True and 0)
print(5 and True)
print(-5 and True)
print(False and 5)
print(False and -5)
print(5 and False)
print(-5 and False)
3
5
5
-5
0
True
True
False
False
False
False
or operatori
print(5 or 3)
print(3 or 5)
print(True or 5)
print(True or -5)
print(True or 0)
print(5 or True)
print(-5 or True)
print(False or 5)
print(False or -5)
print(5 or False)
print(-5 or False)
5
3
True
True
True
5
-5
5
-5
5
-5
© ООО «Знанио»
С вами с 2009 года.