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

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

#### 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.