Created
December 13, 2016 01:28
-
-
Save alanduan/314f27057ff1561a52e03014762378ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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