[Solved] can you explain me to how functions operate [closed]


Although this is blatantly duplicate, here you go.

def function1(): # declares function 2 as printing hello
    print("hello")

def function2(): # declares function 2 as printing bye
    print("bye")

def function3(): # declares function 3 as returning "Hi again", which is printed upon it being called.
    return "Hi again"

function1() # will print hello
function2() # will print bye

print(function3()) # will return the value "Hi again" and then print it

Hope this clarifies everything for you!

2

solved can you explain me to how functions operate [closed]