def greeting(lang):
def hi(name):
if lang == "de":
f = "Guten Tag "
elif lang == "fr":
f = "Bonjour "
elif lang == "it":
f = "Buon Giorno "
elif lang == "gr":
f = "Καλημερα "
else:
f = "Hi "
return f + name
return hi
say_hi = greeting("fr")
print(say_hi("Pierre"))
def f():
def g():
print("Hi, it's me 'g'")
print("Thanks for calling me")
print("This is the function 'f'")
print("I am calling 'g' now:")
g()
f()
This is the function 'f'
I am calling 'g' now:
Hi, it's me 'g'
Thanks for calling me
Bonjour Pierre