title: What is the formal difference between "print" and "return"?
body: <p>Lets say I define a simple function which will display an integer passed to it:</p>
  
  <pre><code>def funct1(param1):
      print(param1)
      return(param1)
  </code></pre>
  
  <p>the output will be the same but and I know that when a <code>return</code> statement is used in a function the output can be used again. Otherwise the value of a <code>print</code> statement cannot be used. But I know this is not the formal definition, Can anyone provide me with a good definition?</p>