<jupyter_start><jupyter_text>Fibonacci-Reihe:   1. Berechne die 100. Fibnoacci-Zahl und teile diese durch die vorhergehende.1. Berechne alle Fibnoacci-Zahlen bis 50 und schreibe für jeden Schritt den Wert *fibo(n)/fibo(n-1)* hinaus.<jupyter_code>def fibo(n=0):
    cursor = (0, 1, 1)
    if n == 0:
        return cursor[1]
    if n==1:
        return cursor[2]
    i = 1
    while i<n:
        cursor = (cursor[1], cursor[2], cursor[1] + cursor[2])
        i += 1
    return cursor[2]

print(fibo(100)/fibo(99))

def fibop(stop=0):
    cursor = (0, 1, 1)
    if stop == 0:
        print(f"0: 1")
        return
    if stop==1:
        print(f"1: 1")
        return
    i = 1
    while i<=stop:
        cursor = (cursor[1], cursor[2], cursor[1] + cursor[2])
        print(f"{i}: {cursor[2]/cursor[1]}")
        i += 1
    
fibop(50)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15661252900232017, 'fraction_numerical': 0.05568445475638051, 'mean_word_length': 2.452, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '322676', 'license': 'CC0-1.0', 'n_tokens_mistral': 378, 'n_tokens_neox': 349, 'n_words': 85, 'path': 'ws1/Übungen.ipynb', 'repo_name': 'eth-its/Python-for-SysAdmins', 'size': '862'}