Prime Number in Python - In Hindi

preview_player
Показать описание
Prime Number in Python - In Hindi - Tutorial#29

In this video, I have explained a program to check whether a given number is Prime number of not. A Prime Number is one who has only two factors i.e. 1 and the number itself. For Example a numbers 2,3,5,7,11,13,17 etc are prime number. Prime number program is one of the best program to understand looping concept is usually asked in the examinations.

We will do Prime Number program using While statement. 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.

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

i must say one thing....the way you teach is far than excellent. I completely understand even im not from computer background but still i understood it well. Im a mechanical engg having 5 years of experience but i resigned my job just to get into DS and ML and i think if such kind of teaching i take, i handle handle this field very well. Nice work.
In future i may ask you, how can i get into DS and ML field, in what ways i should study so that i can match up the industry demand

shivanshsingh
Автор

sir app world best teacher ho jo ye app free me sikha rahe ho

onlycoc
Автор

Sir aapki explanation bahut acchi hai👌👌

aayushibharati
Автор

Sir bhut bhut thanku sir aapka aapke smjane ke way se smj aagya
Sir ek help kr dijiya mujha aapki while loop se related sari video dekhni h but mil nhi rhi

riturajsharma
Автор

Sir thanku so much bhut acha samjate ho love u sir god bless you

videoshorts
Автор

sir aap bhot mast sikate hai ...keep it up ...aap jis tarh se sikaten ho harr bachaa us chizz ko achese catch kar lega ....aap aise hi simplle or undersatnding way mai sikate raho

prathamesh
Автор

Sir u have teach that, , matter which is though not found in the books.hat off to u sir💯

divyanshunegi
Автор

Thank you so much sir
But I tried this question with the help of for loop.

Num = int(input("Entre the Number:-"))

Count = 0

for i in range(1, Num+1):
if Num%i==0:
Count=Count+1

if Count==2:
print("Prime Number")

else:
print("Not a Prime Number")

By the love your content and sir please make SQL Videos of class 11 & 12.

im_golu
Автор

Absolutely different method, one of the easiest method.

BABLISINGH-wfdw
Автор

Superb teaching, Sir I really want to learn advanced python from you

ReetKaur-enfj
Автор

Thank you sir, this is the most simplest way of prime no. Can you tell me how to run this program using function. Your way of explanation is so good

shwetajaiswal
Автор

Sir you are the best teacher of computer thanks a lot of your help .Just one demand left please provide notes of class 11 python😁😁

namishgupta
Автор

Very different method, but easy to understand 😊

sarcasticshailendra
Автор

Hello Sir, your teaching is just way beyond, I really understand the way you explain the topics so well. Mera ek doubt hai that how to find prime number between 100 to 200. Iis par mujhe coding karne ke liye samjh nahi aa raha hai. Can you please explain me once how to find this.

Thank you😊

ReetKaur-enfj
Автор

Big big big fan of yours.
Sir please use VS code it will consumes lesser time than this.

sheshankashahi
Автор

Nice sir 👍👌 awesome really and easy also

gbgangamazingvideos
Автор

Sir isi trh geeks for geeks k exercise question apne according solve kr skte ho ?....Teaching well God Bless you

descendantsoftheheroes_
Автор

Best sir ever.. I wish if I ever had a teacher like you :)

riyx.
Автор

Your program was very nice. But what if the n = 0 . Pl explain the run ning of prog

vaibhavpatharkar
Автор

Sir school mein flag, break ka bhi use kara hai... Ek baar kya wese bhi bata dijiye... Ye to best hai hi..

sunitagarg