Python Bangla Tutorials 26 : for Loop

preview_player
Показать описание
Learning outcomes:
1) syntax of for loop
2) difference between for loop and while loop
Full Python Course is here :
Рекомендации по теме
Комментарии
Автор

ধন্যবাদ ভাইয়া। আসলে আপনার ক্লাসগুলো পেইড কোর্স হিসেবে রাখলেও মানুষ করতো। কিন্তু আমার মতো গরীব ছাত্রদের জন্য এটা বেশ কঠিন হতো বহন করা।
আল্লাহ আপনার মঙ্গল করুন

sabbirahmad
Автор

G.O.A.T of Bangladeshi Programming Community... You are a great teacher sir..❤️

hamimtheboss
Автор

Sottitei sir programming er upor eto video free te pawa onk hard.onk dhonnobad amder free te teach deyar jonno.Allah apnk shustho rakhuk🙂

ryn
Автор

JAJAKALLAH KHAIR Sir..😊
you are true legend.

AbdulAhad-wfdw
Автор

Source Code:
num = [10, 20, 30, 40, 50, 60, 70, 80]
# print(num)


'''index = 0
n = len(num)
while index < n:
print(num[index])
index = index +1
'''
sum = 0
for x in num:
sum = sum + x
print(sum)

onlinementor
Автор

অনেকগুলো লাইন একসাথে কমেন্ট করার সব থেকে সহজ উপায় হচ্ছে যে লাইনগুলো কমেন্ট করবেন সেগুলো সিলেক্ট করে কন্ট্রোল+ফ্রন্ট স্লেশ দিলে হয়ে যাবে। আবার কমেন্ট উঠাতে সিলেক্ট করে কন্ট্রোল+ফ্রন্ট স্লেশ দিলে কমেন্ট হয়ে যাবে।❤

ghsufiyan
Автор

Sir i read in class 6 gaibandha, and i Make a pygame learn from your tutorials
Thank you so much sir and pray for me

foodfun
Автор

bro, jodi kichu project based tutorial toiri korten onek valo hoto

apurbadebnath
Автор

Sir.
i am struggling with for loop's increment part . i mean if want to print "Even number" with for loop then what should I do?
please sir reply me.

robinncode
Автор

assalamoalaikom thanks for making python videos for us

FarjanaMim-snkp
Автор

Dear Brother, Take my Salam. Please, Publish Advance Python With Project. Thanks

zahedulislamchowdhury
Автор

num=[10, 20, 30, 40, 50]
print("the arry is :", num)


""""
index=0
n=len(num)

while index<n:
print(num[index])
index=index+1
"""
sum=0
for x in num:
sum=sum+x

print("sum of this number: ", sum)

AppyAIapps
Автор

vaia ami apnar sathe kotha bolte cai . kivabe somvob bolben

momimirza
Автор

Advance python and data science er upor kichu video banan

travellingmess
Автор

Apnar video gular jonno amder moto student ra programming easily sikhte pari

MizanurRahman-iqjj
Автор

i=(10, 20, 30, 40, 50)
print(i[0:4]) BUT SIR AITA TO AOVABEO KORA JAY

rabbyhasan-fohs
Автор

Advance level tutorial চাই। Tutorial টি অতি সাধারণ মানের।

samsuzaman
Автор

# More coding

num = [1, 2, 3, 4, , 5, 6, 7, 8, 9]
sum = 0
for x in num:
sum = sum + x
print (sum)

sadmansakib
Автор

Showing error from this code: please explain, why got an error?
#For loop ref while loop

item2=[10, 20, 30, 40, 50]
print(item2)
count=len(item2)
print(count)

need=0
while need<6:
print(item2[need])
need=need+1







[10, 20, 30, 40, 50]
5
10
20
30
40
50

IndexError Traceback (most recent call last)
in <module>
7 need=0
8 while need<6:
----> 9 print(item2[need])
10 need=need+1
11

IndexError: list index out of range

dibsaha