Vorlesung 2
This commit is contained in:
15
Vorlesung 2/Uebung3.py
Normal file
15
Vorlesung 2/Uebung3.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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) ))
|
||||
Reference in New Issue
Block a user