First page Back Continue Last page Overview Image

Funktionen innerhalb von Funktionen

def f():

def separator(txt):

txt = txt.center(40, "-")

return txt

print(separator("Start"))

print("This is the function 'f'")

print(separator("Stop"))

f()

-----------------Start------------------

This is the function 'f'

------------------Stop------------------