title: returning values in python
body: <p>i have a code which looks like this</p>
  
  <pre><code>def monokode(b):
  while f == 0:
      if g[h]== b[i]:
          i = i + 1
          j = h - e
          if j &gt;= 100:
              j = (e-h + len(g))*-1
          elif j &lt;= -100:
              j = (e-h - len(g))*-1
          if j &lt; 10 and j &gt;=0:
              print 0,0,j,
          elif j &lt; 0:
              j = j*-1
              if j &lt; 10:
                  print 1,0,j,
              elif j &gt;= 10 and j &lt; 100:
                  print 1,j,
              else:
                  print 1,j,
          elif j &gt;= 10 and j &lt; 100:
              print 0,j,
          else:
              print 0,j,
          h = 0
          if i &gt;= len(b):
              f = 1
      else:
          h=h+1
  </code></pre>
  
  <p>now, i want to make all the statements that print right now, return their value instead. but after some tries, i've realised that i don't know enough about the return statement to use it properly. how can i make the program return multiple values in a long line and then print them afterwards?</p>