Vorlesung 2
This commit is contained in:
14
Vorlesung 2/Uebung1.py
Normal file
14
Vorlesung 2/Uebung1.py
Normal 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) )
|
||||
Reference in New Issue
Block a user