Why doesn't replit return anything to console when use return function?

Question:

why doesn’t replit return anything to console when use return function?
Replit Profile: https://replit.com/@johnleriche01

You’ll have to print out the result of the function for it to be displayed to the console, like so (python example):

def example():
    return 'Hello World'

example() # No output

print(example()) # "Hello World" to the console

Hi = example() # No output

print(Hi) # "Hello World" to the console

If you were asking about a different language, could you specify which one? A link to your Repl would also be appreciated.

1 Like