diff --git a/docs/details.md b/docs/details.md new file mode 100644 index 0000000000000000000000000000000000000000..80f06f82893e4dd50ebde30ff9a8762387a58aaf --- /dev/null +++ b/docs/details.md @@ -0,0 +1,10 @@ +# Documentation + +In the `docs` directory we can add extended documentation about the repository + +This is a good place for more detailed descriptions that would make the readme fille too long. + +Small images used to illustrate the documentation can be added to the `docs/img/` directory: + + +` \ No newline at end of file diff --git a/docs/img/blobs_256x256.tif b/docs/img/blobs_256x256.tif new file mode 100644 index 0000000000000000000000000000000000000000..84bdc64ea2cf8febbf686932b945ce81b155c0c7 Binary files /dev/null and b/docs/img/blobs_256x256.tif differ diff --git a/scripts/fibonacci_example.py b/scripts/fibonacci_example.py new file mode 100644 index 0000000000000000000000000000000000000000..016af03cd22b8c4af54c8c821d3272e802b22c7c --- /dev/null +++ b/scripts/fibonacci_example.py @@ -0,0 +1,15 @@ +print ("This is an example script file") +print ("Scripts are supposed to be be stand alone files that can perform a task") +print ("Here we print the Fibonacci sequence to the level desired by the user") + +def fibonacci(n): + fib_sequence = [0, 1] + while len(fib_sequence) < int(n): + next_num = fib_sequence[-1] + fib_sequence[-2] + fib_sequence.append(next_num) + return fib_sequence + +# Print the first Fibonacci numbers +val = input("\nEnter an amount: ") +for num in fibonacci(val): + print(num)