Important Notice:

Course Content
Conditional and Iterative Statements (Chapter-5) M3-R5.1
About Lesson
Introduction-

          Control statements direction or flow को define  करते हैं जिसके अनुसार किसी प्रोग्राम का execution होना चाहिए। control statements में जब तक दिया हुआ expression true नहीं होता है तब तक ये अपना statement, execute नहीं करता है।

कंट्रोल स्टेटमेंट निम्नलिखित 2 प्रकार के हैं-

  1. Conditional branching or statement
  2. Looping or iteration

Conditional Statements/Selection Statement:-

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

पाइथन प्रोग्रामिंग लैंग्वेज मे निम्न प्रकार के control Statement होते है

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

Note:- switch keyword is not there in python

Introduction-

          Control statements define the direction or flow according to which a program should be executed. In control statements, unless the given expression is true, it does not execute its statement.

There are following 2 types of control statements-

  1. Conditional branching or statement
  2. Looping or iteration

Conditional Statements/Selection Statement:-

          Control statement means that it does not execute its statement until any condition given in the program is true.

There are following types of control statements in Python programming language.

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

Note:- switch keyword is not there in python

error: Content is protected !!