Python if, if_else और if_elif_else कण्ट्रोल स्टेटमेंट - Python In Hindi by Coding Guru

 Python if, if_else और if_elif_else कण्ट्रोल स्टेटमेंट - Python In Hindi

if_else or if_elif_else Control Statements, if_else or if_elif_else Control Statements in Hindi, if_else और if_elif_else कण्ट्रोल स्टेटमेंट, python, Python Control Statements, Python Control Statements in Hindi, History Of python, Python if, python if statement, python if_elif_else statement, python if_else statement, python in Hindi, python statements, python tutorial, python tutorial in Hindi, पाइथन if, Python in Hindi language


Content of Table

  • Introduction
  • if statement
  • else statement
  • if-elif-else statement
  • Conclusion

Python if, if_else और if_elif_else कण्ट्रोल स्टेटमेंट Python in Hindi

  1. if statement
  2. if_else statement
  3. if_elif_else statement

 Control statement का अर्थ है जब तक Program मे दी गई कोई condition सत्य (true) नहीं होती तब तक यह अपने statement को execute नहीं करता है|

 पाइथन में वेरिएबल क्या है? Python Variable In Hindi


if Statement - Python In Hindi

if statement का प्रयोग बहुत सारी Programming Language में प्रयोग किया जाता है जैसे की c, c++, java आदि इसी प्रकार पाइथन मे भी if statement का प्रयोग किया जाता है|

if statement एक control statement है जिसका प्रयोग एक विशेष कंडीशन को test करने के लिए किया जाता है. इसमें कंडीशन केवल एक बार execute होती है जब कंडीशन सत्य होती है| 

If statement मे जब कोई condition true होती है तब ही यह statement को execute करता है और यदि condition false होती है तब यह statement को execute नहीं करता है|


प्रोग्राम मे output 1 में condition true हुई तो हमे आउटपुट मिला जबकि output 2 में condition true न होने पर हमे कोई भी output नहीं मिला |

if_else Statement - Python In Hindi

किसी विशेष conditions  को test करने के लिए if-else statement का प्रयोग किया जाता है. यदि conditions सत्य है तो if statement को execute किया जाता है अगर condition असत्य है तो else statement को execute किया जाता है|

प्रोग्राम मे अगर दोनों condition true होगी तो ही if block का statement प्रिंट होगा | यदि दोनों condition मे से कोई भी एक condition या दोनों condition false होगी तो else block का statement प्रिंट होगा|

if_elif_else Statement - Python In Hindi

if_elif_else statement मे अगर if block की condition true होगी तो if block का स्टेटमेंट print होगा अगर  if block की condition false होगी तो फिर elif block check होगा elif true होने पर elif block का statement प्रिंट होगा,अगर if और elif दोनों false होंगे तो else block का statement प्रिंट होगा |


Conclusion 

  1. पाइथन programming language मे तीन प्रकार के control Statement होते है| Python में if, if_else और if_elif_else ये तीन प्रकार के Control Statements होते है |
  2. Control statement का अर्थ है जब तक program मे दी गई कोई condition सत्य (true) नहीं होती तब तक यह अपने statement को execute नहीं करता है|
  3. if statement एक control statement है जिसका प्रयोग एक विशेष conditions को test करने के लिए किया जाता है. इसमें conditions केवल एक बार execute होती है जब कंडीशन सत्य होती है
  4. किसी विशेष conditions को test करने के लिए if-else statement का प्रयोग किया जाता है. यदि conditions सत्य है तो if statement को execute किया जाता है अगर conditions असत्य है तो else statement को execute किया जाता है|
  5. if_elif_else statement मे अगर if block syntax की condition true होगी तो if block का statement print होगा अगर  if ब्लॉक की conditions false होगी तो फिर elif ब्लॉक check होगा|

**************************************************************************
Related Searches:
if_else or if_elif_else Control Statements, if_else or if_elif_else Control Statements in Hindi, if_else और if_elif_else कण्ट्रोल स्टेटमेंट, python, Python Control Statements, Python Control Statements in Hindi, History Of python, Python if, python if statement, python if_elif_else statement, python if_else statement, python in Hindi, python statements, python tutorial, python tutorial in Hindi, पाइथन if, Python in Hindi language

Post a Comment

Previous Post Next Post