Can someone pls explain this with steps | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone pls explain this with steps

# Python 3: Fibonacci series up to n >>> def fib(n): >>> a, b = 0, 1 >>> while a < n: >>> print(a, end=' ') >>> a, b = b, a+b >>> print() >>> fib(100)

15th Aug 2021, 12:18 PM
Amol Bhandekar
Amol Bhandekar - avatar
1 Answer
+ 3
Please end your Python tutorial first then you will see how it works.
15th Aug 2021, 12:21 PM
JaScript
JaScript - avatar