(c) 2023 Technische Hochschule Augsburg - Fakultät für Informatik - Prof.Dr.Nik Klever - Impressum
def d(x,y):
return max(x,y)
def e(c):
return 5*c
def f(g):
return g(5)
a = d(2,3)
b = e(2)
c = f(e)
print("a={}\nb={}\nc={}".format(a,b,c))
a=3 b=10 c=25
%%Mooc Video
a = "Dies ist eine erste Zeile"
b = "... und eine zweite Zeile"
with open("textdatei.txt","w") as f:
f.write(a)
with open("textdatei.txt","a") as f:
f.write(b)
with open("textdatei.txt","r") as f:
c = f.read()
print("a={}\nb={}\nc={}".format(a,b,c))
a=Dies ist eine erste Zeile b=... und eine zweite Zeile c=Dies ist eine erste Zeile... und eine zweite Zeile