Skip to content

Instantly share code, notes, and snippets.

@alanduan
Created December 13, 2016 01:28
Show Gist options
  • Save alanduan/314f27057ff1561a52e03014762378ef to your computer and use it in GitHub Desktop.
Save alanduan/314f27057ff1561a52e03014762378ef to your computer and use it in GitHub Desktop.
import turtle
import math
from fibonacci import fibonacci_generator as number_generator
if __name__ == '__main__':
for i, v in enumerate(number_generator()):
if v in [0, 1]:
continue
if i > 200:
break
turtle.forward(math.log(v, 2))
turtle.left(60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment