filmov
tv
Python Fibonacci Series | for loop in python | fibonacci series | python shorts #shorts #ytshorts
Показать описание
Print Fibonacci series - 1,2,3,5,8,13
of length 10, using any loop
Code:
length = 10
n1, n2 = 1,2
count = 0
while count length:
print(n1)
nth = n1+n2
n1 = n2
n2 = nth
count += 1
output:
1
2
3
5
8
13
21
34
55
89
new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.
for loop in Python Program
python programming for beginners
python programming examples
python for loop
learn python
#shorts #ytshorts #pythonprogram #tutorial #education #learning #python programmer #python
of length 10, using any loop
Code:
length = 10
n1, n2 = 1,2
count = 0
while count length:
print(n1)
nth = n1+n2
n1 = n2
n2 = nth
count += 1
output:
1
2
3
5
8
13
21
34
55
89
new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.
for loop in Python Program
python programming for beginners
python programming examples
python for loop
learn python
#shorts #ytshorts #pythonprogram #tutorial #education #learning #python programmer #python