I need help with functions and for loops

i just don’t understand functions or for loops…

every time i try to use a function it says something like

<function hi at 0x000002C619F91800>

and for loops just don’t make sense

That means you’re not calling the function, you’re just referring to it.

For example:

def hi():
    print('Hello')

# This prints a reference to the function:
print(hi)

# This actually calls the function:
hi()

# This calls the function and then prints what it returned:
print(hi())

thanks
it worked :smile: