title: Function that takes the limit as an argument of the Fibonacci series and prints till that limit in Python3
body: <p>I've to write a function that takes the limit as an argument of the Fibonacci series and prints till that limit. Here, if the limit is <code>fibonacci(10)</code> then the output should be <code>0 1 1 2 3 5 8</code></p>
  <p>I tried:</p>
  <pre><code>def fibonacci(number):
      a = 0
      b = 1
      print(a,end = ' ')
      print(b, end = ' ')
      
      for num in range( 2 , number):
          c = a + b
          a = b
          b = c
          print(c, end = &quot; &quot;)
          
  
  fibonacci(10)
  </code></pre>
  <p>The output came:</p>
  <pre><code>0 1 1 2 3 5 8 13 21 34
  </code></pre>
  <p>What should I do?</p>