15 lines
484 B
Python
15 lines
484 B
Python
print("Ermitteln Sie den Wahrheitswert der angeführten Boolschen Ausdrücke")
|
||
|
||
print("(1) (8−2 < 6) and (7! = 3)")
|
||
print("(2) (8 > 2) or (7 <= 3)")
|
||
print("(3) (8 == 8) and (16 % 2 == 3)")
|
||
print("(4) (8 ! = 4) or ( (−1 < 2) and (7 > 3) )")
|
||
|
||
input("Enter drücken")
|
||
|
||
import math
|
||
|
||
#print("(1)", ( (8-2 < 6) and (math.factorial(7) == 3) )
|
||
print("(2)", (8 > 2) or (7 <= 3) )
|
||
print("(3)", (8 == 8) and (16 % 2 == 3))
|
||
#print("(4)", ((math.factorial(8) == 4) or ( (-1 < 2) and (7 > 3) )) |