<jupyter_start><jupyter_text>Function<jupyter_code>def fibo(n):
    a = 0
    b = 1
    for i in range(n):
        print(b, end=' ')
        x = b
        b = a + b
        a = x
num = int(input())
fibo(num)
nterms = 10
n1 = 0
n2 = 1
count = 0
if nterms <= 0:
   print("Please enter a positive integer")
elif nterms == 1:
   print("Fibonacci sequence upto",nterms,":")
   print(n1)
else:
   print("Fibonacci sequence upto",nterms,":")
   while count < nterms:
       print(n1,end=' , ')    # seperated by ','
       nth = n1 + n2
       # update values
       n1 = n2
       n2 = nth
       count += 1<jupyter_output>Fibonacci sequence upto 10 :
0 , 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 ,
{'fraction_non_alphanumeric': 0.1438953488372093, 'fraction_numerical': 0.04941860465116279, 'mean_word_length': 2.146118721461187, 'pattern_counts': {'":': 2, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '570669', 'license': 'MIT', 'n_tokens_mistral': 306, 'n_tokens_neox': 272, 'n_words': 79, 'path': '9_Function.ipynb', 'repo_name': 'shahinvx/Python_Basic', 'size': '688'}