title: Using two functions in python, the first to generate numbers with for loop and the last to print all the numbers in python
body: <pre class="lang-py prettyprint-override"><code>def fun() :
    for i in range(1,10):
        return i
  
  
  def main():
     fun()
     print(i)
  
  main()
  fun()
  </code></pre>
  <p>But the problem I have is that, it's printing only the last number but I want to print all numbers</p>