Vorlesung 2

This commit is contained in:
dev weycloud
2021-09-23 19:58:44 +02:00
parent b842733193
commit 5562abd79b
10 changed files with 170 additions and 1 deletions

15
Vorlesung 2/Uebung3.py Normal file
View File

@@ -0,0 +1,15 @@
print("Ermitteln Sie den Wahrheitswert der angeführten Boolschen Ausdrücke")
print("(1) (82 < 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) ))