if else statement

0
19

if else statement, control statements के चार type में से दूसरा होता है। if else Statement में जब दी हुई condition या expression true होता है तब वो if वाला block execute होता है और अगर expression false होता है तब वो else वाला block execute होता है।

Block diagram of if else statement:

Block diagram of if else statement

       Syntax:
                if expression:
                   statement(s)
                else
                   statement(s)
       Example:
                a = 5
                b = 5
                if (a==b):
                      print("a and b are equal")
                else:
                     print('not equal')
       Output:
                a and b are equal

if-else statement को पढ़ने के बाद अन्य प्रकार के control statements नीचे दिये हुये हैं।

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

if else statement if else statement in python if else statement in hindi if else statement in python in hindi if else statement in python 3 if else statement in python 3 in hindi if else statement in python syntax in hindi if else statement in python syntax if else statement in python examples if else statement in python examples in hindi if else statement in python example if else statement in python example in hindi if and else statement in python if and else statement in python in hindi writing an if else statement in python writing an if else statement in python in hindi if and else syntax in python if and else syntax in python in hindi how to make an if else statement in python how to make an if else statement in python in hindi the if else statement in python the if else statement in python in hindi basic if else statement in python basic if else statement in python in hindi python if else statement block python if else statement block in hindi conditional if else statement in python conditional if else statement in python in hindi if else statement python definition if else statement python definition in hindi explain if else statement in python explain if else statement in python in hindi if else statement for python if else statement for python in hindi if else syntax for python if else syntax for python in hindi syntax for if else statement in python syntax for if else statement in python in hindi example for if else statement in python example for if else statement in python in hindi how to use if else statement in python how to use if else statement in python in hindi how to write if else statement in python how to write if else statement in python in hindi nested if else syntax in python nested if else syntax in python in hindi if statement in python if statement in python in hindi if statement if statement in hindi if elif statement if elif statement in hindi if elif statement in python if elif statement in python in hindi

LEAVE A REPLY

Please enter your comment!
Please enter your name here