Back
  • Qissba
  • Courses

      CBSE Class 12

      PYTHON

      Computer Science

      • Python
      • Computer System Overview
      • Computer Networks
      • society Law & Ethics
      • Data Representation
      • Boolean Logics
      Python Online Free Courses for Classes 11th and 12th
  • Blog
  • Shop
    • Cart
    • Checkout
    • My account
  • About Us
  • Contact
  • Career
Have any question?
(+91) 09897990175
qissba@gmail.com
RegisterLogin
Qissba
  • Qissba
  • Courses

      CBSE Class 12

      PYTHON

      Computer Science

      • Python
      • Computer System Overview
      • Computer Networks
      • society Law & Ethics
      • Data Representation
      • Boolean Logics
      Python Online Free Courses for Classes 11th and 12th
  • Blog
  • Shop
    • Cart
    • Checkout
    • My account
  • About Us
  • Contact
  • Career

    Computer Science

    Conditional statements – CBSE class12

    • Posted by Kabeer Sahib
    • Categories Computer Science

    Conditional Statements

    Introduction to conditional statements or alternative statements

    Typically, when we run programs in python then python interpreter excludes its statement from belonging end to end / Line by line, but not many programs execute all statements in strict order as from beginning to end . A complex program can choose its execution sequence alternatively i.e., according to the need of the required output and to perform their manipulation magics, python program require some tools for performing repetitive actions and for making decisions and of course , python also provide such mechanism through STATEMENTS, such statement are called program control statements.

    Table of Contents

    Toggle
    • Conditional Statements
      • Introduction to conditional statements or alternative statements
        • Types of statements in python 
        • Simple statements/single
        • Empty statements
        • Compound statements
      • Why conditional statement in Python?
      • Exam Time
      • IMPORTANT QUESTIONS : Asked in examinations of Class 12th Computer Science

    In this tutorial, we are going to learn about different kinds of control statements that python provides for statement and Iterative decision making through python programs.

    Types of statements in python 

    As we discussed above, python provides different types of statements that can be used to perform the following actions through program.

    1. Data movements
    2. Decision making
    3. Repeating actions

    “Hence statements are the smallest executable unit within a python program or statements are the instructions given to the computer to perform any kind of actions”

    These python statement can belong one of the following three types.

    1. Simple statements/single

    2. Empty statements

    3. Compound statements

    Let’s discuss these one by one.

    • Empty statements. – A statement which does nothing is always an empty statement. It means an empty statement is a simplest statement in python, it is simply identified by the following 

    Pass

    empty statements in python

    Whenever python executes a pass statement python does nothing and moves to the next statement in the flow of control . A pass statement is useful in those instances where the syntax of python requires a statement and the logic of the program does not require anything to do.

    example program
    • Simple statement – Any single statement that can be execute in python is called simple statement.

    Simple statements@qissba.com

    when a single statement  written in a single line executes and perform some action within the python program, it is called as simple statement,

    For example

                             Name=int (input (“your name”))

                             Print(name)

    image simple
    • Compound statements – when we write more than one statement in multiple lines to be executed in python. This group of statement is called compound statement. This group of statements can perform repeating or iterative action according to logical requirements The compound statement in python are written in a specific pattern as shown below.

    <compound statement header>:

    <intended body containing multiple/single/compound statement>

    That means; a compound statement has

    1. A header title with begins with a keyword and ends with a colon (:)
    2. A body containing or more python statements and each intended inside the header line, Also all statements in the body are at the same level of indentation.

    Why conditional statement in Python?

    In this tutorial, we have learnt about Conditional statements in python for CBSE class 11 & 12 and its related concepts according to CBSE syllabus and. This tutorial is useful for Central Board of secondary education (CBSE) student of class 11th and 12th  , who opted computer science (Code 083) as an optional subject. This topic is also very important to start learning python programing language for beginners of class 11th and 12th.

     

    You can check the latest CBSE syllabus for computer science Click here for syllabus OR Click here

    UNIT NO.UNIT NAMEMARKS
    1Computational thinking and programming40
    2Computer network10
    3Database management20
    4Practical30
    5Total100

     

    Unit II: Computational Thinking and Programming – 1

    According to the syllabus , Unit  II  Computational Thinking and Programming – 1 has  the above concepts for learning related to python Bitwise Operators in Python.

     

    Exam Time

    Chapter : Bitwise Operators in Python


    IMPORTANT QUESTIONS : Asked in examinations of Class 12th Computer Science

    Tag:CBSE, class 12, Conditional and Iterative statements, Mohammad Amees, python free tutorial, python notes, qissba, qissba technology

    • Share:
    Kabeer Sahib

    A Trained Post Graduate Teacher with 10 years of experience and working as TGT/PGT–Computer Science including good Management and administration skills with managerial positions in previous work environments

    Previous post

    Structure of Module in Python CBSE Class-12
    21 July 2022

    Next post

    If Statement Python - CBSE Class 12
    19 October 2022

    You may also like

    Operator Precedence & Associativity in Python | CBSE Class 11| Computer Science
    24 June 2025

    Dear Class 11th STUDENTS, ! Welcome to this tutorial of Operators in Python from your CBSE class 11 of …

    basics-of-python-programming-languages-cbse-class-11
    Basics of Python Programming Language | CBSE Class 11| Computer Science
    3 June 2025
    encoding-schemes-cbse-class-11-computer-science
    Encoding Schemes | ASCII | ISCII | Unicode | CBSE Class 11| Computer Science
    21 May 2025

    Leave A Reply Cancel reply

    You must be logged in to post a comment.

    Search

    Categories

    • Computer Science
    • Education
    • Education News
    Computer Science : Python – CBSE Class 11

    Computer Science : Python – CBSE Class 11

    ₹1,999.00Free
    Computer Science : System Overview – CBSE Class 11

    Computer Science : System Overview – CBSE Class 11

    ₹999.00Free
    Computer Science : Python – CBSE Class 12

    Computer Science : Python – CBSE Class 12

    ₹1,999.00Free

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Log in

    Copyright @ 2021 ! QISSBA EDUCATION ! .

    • Privacy
    • Terms
    • Sitemap
    • About Us

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Register a new account

    Are you a member? Login now