Nested function calls | day during the epidemic more (15)

Nested function calls
a function which, in turn calls another function function is the nested function calls

def test1():
    return("*" * 10)
print(test1())

The output is:

**********
def test1():
    return("*" *10)
def test2():
    print("+" *10)
    print(test1())
    return("-" *10)
print(test2())

The output is:

++++++++++
**********
----------
Published 17 original articles · won praise 12 · views 2196

Guess you like

Origin blog.csdn.net/xiaoyun5555/article/details/104679415