def fib(n): a=0.0 b=0.0 c=1.0 for i in range(0,n+1): print b b=b+c a=c c=b returnfib(7)
Standard input is empty
0.0 1.0 2.0 4.0 8.0 16.0 32.0 64.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!