nested if else hindi python

Nested if else statement Hindi | Nested if else in python in Hindi

Python
Loading...

Nested if else in Hindi:Nested if else statement Jab ek if block ke under dusra if block diya jata hai usse hi nested if else kahte hai.

Python me if, if_else or if_elif_else , nested if else ye 4 tarah ke Control Statements hote hai |

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

python Nested If else Statement in Hindi

Syntax :

if expression :
        if expression :
	          if_statement
        else expression :
                  else_statement
else:
       else_statement

Aap upper diye gye syntax ko dekh sakte hai.

nested if else hindi python

Python nested if else statement with examples in Hindi

Example :-

win = 90
user  = int(input("Enter The Number between 1 to 100: "))

if user == win:
     print("You Are Win")

else:                             # nested if else
     if user<win:
           print("Too Low")
     else:
           print("Too High")

Aap Upper Diye Gye Program ko samanjh sakte hai.

Output :-

Enter The Number between 1 to 100: 90
You Are Win

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

Example 2 :-

win = 90
user  = int(input("Enter The Number between 1 to 100: "))

if user == win:
     print("You Are Win")

else:                             # nested if else
     if user<win:
           print("Too Low")
     else:
           print("Too High")

Output :-

Enter The Number between 1 to 100: 50
Too Low

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

Nested if else in python video

Read Also This Post :

Dosto mujhe ummed hai ki aap Python Nested If 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.