n=int(input("introducir n: "))a=-1b=1for i in range(n): c=a+b a=b b=c print(c)
6
introducir n: 0 1 1 2 3 5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!