Python Program to Find Sum of First n Natural Numbers - In Hindi

preview_player
Показать описание
Python Program to Find Sum of First n Natural Numbers - In Hindi - Tutorial#16

In this video, I have explained a program with while loop to to find sum of first n natural numbers in python. This is a basic program to to find sum of first n natural numbers using while loop. While loop is the basic looping system in Python Programming. Natural Numbers start with 1 and it goes upto N. We have to find sum all the numbers from 1 to a N (given by the user).

Looping/While statement is used to execute a single statement or a block of statement n times till the condition is true. Every loop must contain three parts:

1. Initialization of counter variable.
2. Condition
3. Increment/Decrement of counter variable

While loop or any loop will work fine if all the three parts are there in the programs. If any one is missing the loop will not run properly.

Tags Used:

Find Sum of First n Natural Numbers
python,python tutorial in hindi
python tutorial for beginners
complete python tutorial in hindi
while loop in python
while loop in python in hindi
while loop in python programming
loops in python programming
loops in python for beginners
programming exercises python
python while loop examples
while program in python
while programming in python
find sum of first n natural numbers in python
sun of first n natural numbers

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

bro you posted this video about a year ago and this turned beneficial for me today! i was so much confused and got agitated by these loops concepts but here when i watched this video it immediately made me learn looping very easy. your way of explaining is really good. 👍 i must say you teach better than my python tuitor. i hope you will never stop making such easy to learn videos, keep on my making & i have to say this that your all python videos come very much in handy for me & many others like me as well.
a big thanks & gratitude to you😇😊 all the best for your YT channel keep it growing ☺

ritambhardwaj
Автор

Nic explaination🙏
My brain was so confused but, your explaination remove my confusion
Thankyou so much 💐

amish
Автор

Thanks for explaining this lucidly!! Really helpful

aarohansharma
Автор

Your python knowledge and teaching should be BEST TUTOR FOR PYTHON

HarivallabhPanchi
Автор

This is the first video which I watched on ur channel and subscribed ur channel and liked. Sir ur explanation is really very easy and nice. Please make and more videos. I will keep on liking and watching them. Thank you sir.

arunagoswami
Автор

Thankyou sir very very much ....i cannot believe someone teaching with so much patience..you explained each and every line very nicely thank you🤗

radhikabinesh
Автор

Sir it had not only made this topic easier but also made an interest in learning python . Thankyou sir it mean a lot for me.

ShaikhMahujabeen
Автор

Thank you so much sir...This vedio is helpful ❤✨

abhi
Автор

litrally bhaiya aapne bhut zada acha explain concept clear ho gya ache se

abhijeetsonker
Автор

Baaki saari videos python ki wrong h, only u r right...

ANAMIKA
Автор

I am in love with you only within 5 sec, becoz I realised without even seen the video that finally I found the channel that easily take me out from the python problems .

amazonshoppingstore
Автор

hats off to perfect clean explanation. tx a lot sir.

sidj
Автор

Sir, i like ur vedioes very much, u explain very well, and in easy way.

latajoshi
Автор

Thank you so much sir, you helped me a lot..✌️✌️✌️

Ak-iffp
Автор

nice explained, You made this easy to understand. ...all is video too good, thank you bro

tejasvipratap
Автор

BROTHER I SEE lots of video on this type but your teaching skill is on another level

devilraj
Автор

Sir, how the value of i becomes 2 as we took the variable as i=1. I have this confusion

xelios
Автор

You teach better then the teachers of our school

khu
Автор

Your teaching style is very good
Thank you very much sir ji

abhimangaur
Автор

Excuse me sir !! 😅
It's alternative
Other than using loop 😅😅
Syntax:
n=int(input("enter the no upto which you want to add :"))
a=n+1
b=n*a
c=b/2
print ("your reasult ", c)

Thank you sir !!
#codeitup

prayasnayak