Dontopedia

Fibonacci function in Python

From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-07-05.)

Fibonacci function in Python has 18 facts recorded in Dontopedia across 2 references, with 3 live disagreements.

18 facts·14 predicates·2 sources·3 in dispute

Mostly:rdf:type(2), invokes function(2), initial value(2)

Maturity scale raw canonical shape-checked rule-derived certified

Inbound mentions (2)

Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.

calledFunctionCalled Function(1)

presupposesUserInterestPresupposes User Interest(1)

Other facts (17)

The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.

17 facts
PredicateValueRef
Rdf:typeSource Code[1]
Rdf:typeCode[2]
Invokes FunctionFibonacci Function[1]
Invokes FunctionPrint Function[1]
Initial Value0[2]
Initial Value1[2]
Programming Languagepython[1]
Code Contentdef fibonacci(n): if n <= 0: return [] elif n == 1: return [0] fib = [0, 1] while len(fib) < n: fib.append(fib[-1] + fib[-2]) return fib result = fibonacci(10) print(result)[1]
Defines FunctionFibonacci Function[1]
Languagepython[2]
Function Namefibonacci[2]
Parameter Namen[2]
Initializesfib_sequence list[2]
Uses Loopwhile loop[2]
Loop Conditionlen(fib_sequence) < n[2]
Append Operationfib_sequence[-1] + fib_sequence[-2][2]
Returnsfib_sequence[2]

Timeline

Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.

typeblah/omega/87
ex:SourceCode
programmingLanguageblah/omega/87
python
codeContentblah/omega/87
def fibonacci(n): if n <= 0: return [] elif n == 1: return [0] fib = [0, 1] while len(fib) < n: fib.append(fib[-1] + fib[-2]) return fib result = fibonacci(10) print(result)
definesFunctionblah/omega/87
ex:fibonacci-function
invokesFunctionblah/omega/87
ex:fibonacci-function
invokesFunctionblah/omega/87
ex:print-function
typedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
ex:Code
labeldocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
Fibonacci function in Python
languagedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
python
functionNamedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
fibonacci
parameterNamedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
n
initializesdocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
fib_sequence list
initialValuedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
0
initialValuedocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
1
usesLoopdocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
while loop
loopConditiondocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
len(fib_sequence) < n
appendOperationdocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
fib_sequence[-1] + fib_sequence[-2]
returnsdocument/035dc17e-c9f9-4621-9125-f9273fbd3fb1
fib_sequence

References (2)

2 references
  1. [1]876 facts
    ctx:discord/blah/omega/87
    • full textomega-87
      text/plain3 KBdoc:agent/omega-87/441c8936-2ec4-45e4-92ac-a4f1e0c0c48f
      Show excerpt
      [2025-11-15 16:19] omega [bot]: **🔧 Tool 2/2: tellJoke** **Arguments:** ```json { "category": "puns" } ``` **Result:** ```json { "joke": "What do you call a dinosaur with an extensive vocabulary?\n\nA thesaurus!", "category": "puns",
  2. ctx:claims/document/035dc17e-c9f9-4621-9125-f9273fbd3fb1

See also

Keep researching

Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.