if statement

0
23

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

Syntax:
        if <conditional expression> :
	statement(s)
Example:
        a = 5
        b = 4
        if(a > b) :
        print("a is greater than b")
Output:
       a is greater than b

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

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

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

if statement if statement in python if statement in python in hindi if statement in python 3 if statement in python 3 in hindi if statement in python example if statement in python syntax if statement in python in one line writing an if statement in python writing an if statement in python in hindi using an if statement in python using an if statement in python in hindi example of an if statement in python example of an if statement in python in hindi if statement in python definition if statement in python definition in hindi simple if statement in python example simple if statement in python simple if statement in python in hindi if-else statement in python if else statement in python in hindi if elif statement in python if elif statement in python in hindi nested if statement in python nested if statement in python in hindi

LEAVE A REPLY

Please enter your comment!
Please enter your name here