Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size = int(input())
- fibonacci_list = [1]
- start = 0
- next = 1
- for _ in range(size - 1):
- if size != 1:
- total = start + next
- fibonacci_list.append(total)
- start = next
- next = total
- print(*fibonacci_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement