mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
12 lines
185 B
Python
12 lines
185 B
Python
n1 = 0
|
|
n2 = 1
|
|
count = 0
|
|
until = 10
|
|
|
|
print(f"These are the first {until} numbers in the Fibonacci sequence:")
|
|
|
|
while count < until:
|
|
print(n1)
|
|
n1, n2 = n2, n1 + n2
|
|
count += 1
|