For loop example 1 : Python tutorial 60

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 1

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

3:05 great sir you take care of each and every thing, so that we can learn easily and don't get wrong Information. 👏👏👏

tanishkasingh
Автор

# n = int(input("Enter any number to get it's sum: "))
# total = 0
# for i in range(1, n+1):
# total += i
# print(f"You typed {n} so sum of 1 to {n} is : {total}")

jatintomar
Автор

num= int(input("Enter any number- "))
sum=0
for i in range(1, (num+1)):
sum= sum + i
print(sum)

chandrashekharsaw
Автор

sum = 0

for i in range(11):
sum += i
print(sum)

akshatnagar
Автор

the efforts you are taking to teach right concepts is commendable!

hibamariam
Автор

Sir we like your practical programs exercises.. by examples we can learn more easily and practically. Sir make more good big useful projects/softwares.. it will make us more interested, knowledgeable and fun to learn this course.. Many many thank you sir 🙏🙏..

chinmaydas
Автор

your video is short and easy to understand thank you very much for such a good video...

fireblock
Автор

Bro waiting for the python data structures from you.. As u are the awesome python guide..

satyaprakashsahoo
Автор

no one can teach python better than you sir ..👌👌👌superb.

ujwalakadam
Автор

number=int(input("enter a natural number for sum :"))
number += 1
total=0

for i in range(1, number):
total += i
print(f"The sum of natural number from 1 to {number-1} is : {total}")

anishshakya
Автор

sum=int(input('enter a number :'))
for i in range(1, sum):
sum+=i
print(sum)

swayamraghav
Автор

total = 0
x = int(input("enter first number : "))
y = int(input("enter second number : "))

for i in range(x, y+1):
total += i

print(total)
#this code is not that informative but it works perfectly!!!

kaivalyakhairnar
Автор

Bro you are doing great job but.... please increase upload speed

sign
Автор

for i in range (1, 11):
print (i)

muhtasim_mahim
Автор

total = 0
for i in range(0, 11):
total -= i
print(total)
sir + ke jagha - laga di ya to answer to -55 aa ya

kingnayak
Автор

In while loop tutorial, we are increment i (i+=1) but in for loop why we are not write increment function

harshadpawar
Автор

sir can you please tell that which framework you are using in videos

israrahmed
Автор

I have watched all video of this series please upload more videos.

riteshkumarjaiswal
Автор

Sir, for n no. of intergers we have to write n+1?

kritanshsharma
Автор

#Take input for this video---->>>>

num1=int(input("Enter the 1st number : "))
num2=int(input("Enter the last number : "))
initial_value=num1
total=0
for num1 in range (num1, num2+1):
total+=num1
print(f"Total sum of {num1} to {num2} is : {total}")


#OR an another way====>>>>

num1=int(input("Enter the 1st number : "))
num2=int(input("Enter the last number : "))
total=0
for i in range (num1, num2+1):
total+=i
print(f"Total sum of {num1} to {num2} is : {total}")

avilashbhowmik