Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...

Code Snippet

#The famous fibonnacci seqeuence, this time using a FOR LOOP to produce it
a = 1
b = 1
for c in range(1,10):
    print (a)
    n = a + b
    a = b
    b = n
print ("")

Try it yourself