Dapatkah output fungsi disimpan sebagai variabel ular
#You have to return something in a function to have it in a variable.
def ex_one():
print('Hi!')
#This won't work.
def ex_two():
msg = 'Hi!'
return msg
#This will work.
var = ex_two
Helpless Herring