How to print the output of a function

Hi, I have this function:

def hello (name):
    return ('Hello ', name)

first_variable = hello('Maya')
st.text(first_variable)

I want to see ‘Hello Maya’ in my web app, but I get: ‘None’

What should I do?

Sorry, the 1st, 3rd and 4th line of your program remain the same. I have only modified the 2nd line, which should be

return f"Hello {name}"

(Was having trouble posting the response message)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.