Skip to content

Instantly share code, notes, and snippets.

@theoctober19th
Last active May 13, 2020 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theoctober19th/a72e1df765588eeb51387faa7765ed97 to your computer and use it in GitHub Desktop.
Save theoctober19th/a72e1df765588eeb51387faa7765ed97 to your computer and use it in GitHub Desktop.
Code golf for first 20 fibonacci numbers
a,b=0,1
for _ in range(20):
print(a)
a,b=b,a+b
@dhpradeep
Copy link

a,b=0,1
for _ in range(20):print(a);a,b=b,a+b

count: 45
lang: py

(I would like to do this, if no. of word matters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment