Files
dev weycloud 5562abd79b Vorlesung 2
2021-09-23 19:58:44 +02:00

15 lines
484 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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) ))