Title / Description
Code def fibonacci(): """a generator for Fibonacci numbers, goes to next number in series on each call""" a, b = 0, 1 while True: yield a a, b = b, a + b
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code