x = int(raw_input("Go until?")) a, b = 0, 1 while b < x print b a, b = b, a+b
printable version
link view
Everything2 Help