"""limit = 10 fib_list = [0,1] print fib_list while len(fib_list) <= limit: lastnum = fib_list[len(fib_list) - 1] fib_list.append(fib_list[last] + fib_list[last - 1]) print("Hi") print("Out of the while loop") for num in fib_list: print num """ print hi
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question