I'm having a small issue using Python with Atom. My code executes fine expect that in order for me to see results of functions I need to include a print
statement. If I include a return
instead statement I do not see the result. How can I fix this?
EDIT
Here's a reproducible example. No output is returned by Atom when I execute Python code from it (Note, I am using the language-python package in Atom).
def multiplier(i, j):
output = i * j
return(output)
multiplier(2, 5)
if I instead do:
def multiplier(i, j):
output = i * j
print(output)
multiplier(2, 5)
I get an output of 10
from Atom.