/media/sda-magnetic/david/Dokumente-16-2024-08-01/informatikUmathematik/python20240707/py320240706.py


# 20240607

print("Hallo")
print("5+4")
print(5 + 4)
print("5*4")
print(5 * 4)

x = 3 + 2
y = 7 + 4
z = 101 * 21

print("x = 3 + 2")
print("y = 7 + 4")
print("z = 101 * 21")

print (x)
print (y)
print (z)

if x < y:
    print ("x ist kleiner y")
else:
    print ("y ist kleiner gleich x")

i=0
while i < 10:
    print (i)
    i=i+1

a = [2,4]

i=3
while i < 10:
    a.append (i ** 2)
    i = i + 1

print (a)

i=0
z=0
while i < 8:
    z = z + a [i]
    i = i + 1