Example 2 : For loop : Python tutorial 61

preview_player
Показать описание
Guys please help this channel to reach 20,000 subscribers. I'll keep uploading quality content for you.

Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi.

You can share this playlist with your brother, sisters and friends. This will surely add some values to their life.

If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.

This is for loop example 2

Рекомендации по теме
Комментарии
Автор

Thank you so much dear ..

You are really awesome...

Jitni achhe se tumne samjhai he.. ohh to ek bar me samjh aa jata he.

Basically I m from biology background but.. after watching your videos. I love it 😍

MyMnbv
Автор

YOu are the best. Kitna patience ke samjhate ho bhai. Thank you so much.

flamboyantperson
Автор

n = input("enter more then two digits : ")

total = 0


for i in range(0, len(n)):

total += int(n[i])
print(total)

media
Автор

total = 0
num = input("enter the number : ")
for i in range(0, len(num)):
total += int(num[i])
#mera ye code type krne k bad answer
1
2
3
arha ha
na k only
3

usmanghani-npxk
Автор

num=input("enter a number : ")
num_len=len(num)
i=0
total=0
for i in range(num_len):
total+=int(num[i])

print(total)

edutime
Автор

AOA sir, there is some problem in my output i copy your code . i enter input like this 123
they give a out like this 123 123 123

tkkgroup
Автор

I like your videos.. they are not boring and please do not use the f word, i thing using f word is silly and it doesn't make you cool.

RaviSharma-gfhu
Автор

total=0
num=input("Enter the number : ")
for i in num:
total+=int(i)
print(total)

#this is too easy to understand....

dart
Автор

this is not working
for loop is not working
normal number are shown

somilmaurya
Автор

This channel is underrated. I wish all the best

vishnujatav
Автор

wao sir kiya baat hay apki .aap waqyaha he kamal kay teacher hain,

muhammadmudassarsharif
Автор

bhai Total input se pehle ya baad me likh ne se kya hoga
e.g
total = 0
num = input("enter number: ")

num = input("enter number: ")
total = 0

akramshaikh
Автор

num=input("type digit here")

a=len(num)
total=0
for i in num[:a]:
total+=int(i)
print(total)

MrZeekkhan
Автор

Sir, please solve my problem it is showing error unexpected indent

prakhardixit
Автор

sir app select karke keysa comment out karte ho jara bata na.. plss

techieroy
Автор

agar hm ne input karte time pe agar space de diya to error aa jata he to kya es ko solve karne ke liye aur ek variable lena padega jisme hm space ko "0" ke sath replace karna padega
eske alava koi aur option he kya

pujakhewale
Автор

Before thanks sir, now sir no clearty in 47 to above so give me solution please

shrikantshrikant
Автор

lekin 0 se to by default shuru hota hain na for loop main

ujwalakadam
Автор

if i want to sum without using string sequence then how will i do?

sachingusain_
Автор

bhai yrrr mne bilkl dame likha pr yrr print nhi ho rha bhai g bta do

invincible
visit shbcf.ru