Conditional Looping Constructs
[Pages:29]Chapter 10 Conditional & Looping Constructs
New syllabus 2020-21
Computer Science
Class XI ( As per CBSE Board)
Visit : python.mykvs.in for regular updates
Control Statements
Control statements are used to control the flow of execution depending upon the specified condition/logic. There are three types of control statements.
1. Decision Making Statements 2. Iteration Statements (Loops) 3. Jump Statements (break, continue, pass)
Visit : python.mykvs.in for regular updates
Decision Making Statement
Decision making statement used to control the flow of execution of program depending upon condition.
There are three types of decision statement.
1. if statements 2. if-else statements 3. Nested if-else statement
making
Visit : python.mykvs.in for regular updates
Decision Making Statement
1. if statements An if statement is a programming conditional statement that, if proved true, performs a function or displays information.
Visit : python.mykvs.in for regular updates
Decision Making Statement
1. if statements
Syntax: if(condition):
statement [statements] e.g. noofbooks = 2 if (noofbooks == 2): print('You have ') print(`two books') print(`outside of if statement') Output You have two books Note:To indicate a block of code in Python, you must indent each line of the block by the same amount. In above e.g. both print statements are part of if condition because of both are at same level indented but not the third print statement.
Visit : python.mykvs.in for regular updates
Decision Making Statement
2. if-else Statements
#find absolute value a=int(input("enter a number")) if(a ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- conditional looping constructs
- basic python programming for loops and reading files
- working with functions in python
- learning the pythonic way
- exploring data using python 3 dr charles r severance
- introduction to python programming course notes
- python 3 tutorialspoint
- python programming 1 variables loops and
- python selection if else basic selection statement
- lecture 5 hypothesis testing in multiple linear regression
Related searches
- excel conditional formatting if statement
- conditional formatting if statement color
- if then conditional formatting in excel
- conditional underwriter approval means what
- excel conditional formatting if cell equals another
- conditional format if formula result is true
- how to use conditional formatting in excel
- conditional formatting in excel 2013
- conditional formatting by row excel
- excel conditional formatting formula
- excel color conditional formatting
- ms excel conditional formatting