14 lines
321 B
Python
14 lines
321 B
Python
# 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) ) |