Eli Heuer’s Blog


Hello World

Hello world, welcome to my blog! Here is a Fibonacci sequence generator in Python, a test of the syntax highlighter Pygments:

def fibonacci(n):
a = 0
b = 1
for i in range(0, n):
    temp = a
    a = b
    b = temp + b
return a

# Display the first 15 Fibonacci numbers.
for c in range(0, 15):
    print(fibonacci(c))

Contact


Tags


Source Code


Licensing

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC_BY-SA 4.0) license.

Except where otherwise noted, all source code on this blog is licensed under the GPLv3 License.

© 2018


Feeds

Atom

Tux

This site was built with free software.