Hi I notice that streamlit coding might be a bit different from python. I am new to streamlit. May I know for function def name(): do I have to code return ? Python needs to but I feel that streamlit dont need. Please advice if my understanding is correct. Example in python if I want to get x, my def name(): must have a return x.
def name():
x = 1+1
return x
name()