main module

The main.py file is currently used for demonstration only within this project, in order to offer a standard entry point to the whole template.

The structure of the app itself is not predefined, and different apps will present different structures, hence the freedom.

In this example, the main file is supposed to be called directly from an interpreter which will call the main() function.

if __name__ == '__main__':
    main()
main.fibonacci(index: int) → int[source]

Computes the Fibonacci number for a given index through recursion.

main.main() → None[source]

The main function within this example simply computes the first ten digits of the Fibonacci sequence.

Warning

Using a recursive function in this instance is a waste of resources, but this is just an example.

The Fibonacci number have an interesting mathematical significance, and have many applications.

Note

See https://en.wikipedia.org/wiki/Fibonacci_number for more on the Fibonacci numbers.