Python tutorial में आज हम जानगे की Python control statements क्या है ( What is Python control statement in hindi ) किसी भी programming language में Control statement बहुत ही महत्वपूर्ण होता इसके बिना programming नहीं की जा सकती है आइए इस विस्तार में समझते हैं की Python control statements क्या है ( What is Python control statement in hindi ) INTRODUCTION Program में condition के अनुसार statement को control करने के लिए control statement का उपयोग किया जाता है। इस हमे decision making statement भी कहते हैं 1) if Statement- if statement में किसी condition को check किया जाता है यदि condition true होती हैं तो if block मे लिखी statement execute हो जाते हैं और यदि condition false है तो if के block में लिख code को ignore कर दिया जाता है। Syntax- if condition: Statements Example- a = 10 b = 20 if b > a: print("b is greater than a") Output- b is greater than a 2) if-else- if-else statement भी if की तरह होता है difference बस इतना है की इसम...
Cocde dept blog पर आप सभी का स्वागत हैं। इस blog पर आपको coding, programming computor से related tutorial, tips and tricks और facts hindi मे मिलेंगे ताकि आपके सभी concept आसानी से hindi भाषा मे समझ सके
टिप्पणियाँ
एक टिप्पणी भेजें