Q:

Create an inner function using python programming

0

Create an inner function

Question description: -

  • Create an outer function that will accept two strings, x and y. (x= 'Emma' and y = 'Kelly'.
  • Create an inner function inside an outer function that will concatenate x and y.
  • At last, an outer function will join the word 'developer' to it.

Expected Output: -

EmmaKellyDevelopers

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def manipulate(x, y):
    # concatenate two strings
    def inner_fun(x, y):
        return x + y

    z = inner_fun(x, y)
    return z + 'Developers'

result = manipulate('Emma', 'Kelly')
print(result)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Modify the element of a nested list inside the fol... >>
<< Print the following number pattern using python pr...