elif python hindi

Elif python In Hindi | Python If Else Elif Statement in Hindi

Python

Elif python in Hindi:Python if else elif statement yani control statements ko diya gya expression true hota hai to tab if wala statement execute hota or agar expresssion elif wala true hota hai to tab elif wala statement execute hota hai or agar expression false hota hai tab else wala statement execute nhi hota hai.

Elif python In Hindi

Python me if, if_else or if_elif_else ye 3 tarah ke Control Statements hote hai |

Isse Or Accha Samanjh ne ke liye iske kuch example dekhte.

Syntax :

if expression :
	if_statement
elif expression :
        elif_statement
else:
       else_statement

Aap upper diye gye syntax ko dekh sakte hai |

If elif else Statement in python in Hindi

elif python hindi

Python if elif else statement with examples in Hindi

Example :-

a = 10
b = 10
if (a==b):
   print('A and B Are Equal')
elif(a<b):
   print('B Greater')
else:
   print('A Greater')

Aap dekh sakte hai hamne 2 variables banaye hai or us variables 10 , 10 Value di hai . or fir if elif else statement condition lagaya hai.

Output :-

A and B Are Equal

Aap upper Diye gye output ko dekh kar program ko samanjh sakte hai.

Example 2 :-

a = 10
b = 20

if (a==b):
   print('A and B Are Equal')
elif(a<b):
   print('B Greater')
else:
   print('A Greater')

Aap dekh sakte hai hamne 2 variables banaye hai or us variables a=10 ,b= 20 Value di hai . or fir if elif else statement condition lagaya hai.

Output :-

B Greater

Aap Upper Diye gye output ko dekh kar program ko samanjh sakte hai.

Example 3 :-

a = 30
b = 20

if (a==b):
   print('A and B Are Equal')
elif(a<b):
   print('B Greater')
else:
   print('A Greater')

Aap dekh sakte hai hamne 2 variables banaye hai or us variables a=30 ,b= 20 Value di hai . or fir if elif else statement condition lagaya hai.

Output :-

A Greater

Aap Upper Diye gye output ko dekh kar program ko samanjh sakte hai.

if elif else in python video

Python If Else Elif Statement in Hindi

Also Read This Post :

Dosto mujhe ummed hai ki aap Python If elif else Statement with examples in Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

Your email address will not be published. Required fields are marked *