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

14
Vorlesung 2/Uebung1.py Normal file
View File

@@ -0,0 +1,14 @@
# 1. Was gibt das folgende Programm am Bildschirm aus?
# Gehen Sie es erst im Kopf durch und notieren Sie Ihre Vermutungen.
# Prüfen Sie dann mit der Kommandozeile.
x = 2
y = 3
z = x + y
print(x)
print(z)
print(x, y, z)
print( "x:", x, "y:", y)
print( "x:", x, "\ny:", y)
print(x == y)
print( (z > x) and (x != y) )