Important Notice:

Conditional Statements

Conditional Statements

23 views 1 min read

Conditional Statements in Python:-

Conditional Statements का उपयोग तब किया जाता है जब हमें किसी Condition (शर्त) के आधार पर Program के Flow को Control करना हो। इनकी सहायता से Program यह तय करता है कि किसी particular condition के True या False होने पर कौन सा Code Execute किया जाए।

किसी condition के आधार पर decision लेने के लिए किया जाता है।

English-
Conditional Statements are used when we need to control the flow of a program based on a certain condition. With their help, the program decides which code to execute depending on whether a particular condition is True or False.

Types of Conditional Statements-

  1. if Statement
  2. if-else Statement
  3. if-elif-else Statement
  4. Nested if Statement

Related Notes