8/14 "For one and all" - return vs. print


#1

why do I have to print 2*number instead of return 2*number? Thanks!


#2

When you return something you give the information to the console, but when you print something you display something through the interpreter (the box on the top right corner) which is seen by the viewer of your interpreted code. If you need clarification on what I just said don't hesitate to ask, hope this helps.