CONDITIONAL AND ITERATIVE STATEMENTS
for more updates visit:
CONDITIONAL AND ITERATIVE STATEMENTS
VINOD KUMAR VERMA, PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), KV NO.1 TEZPUR
for more updates visit:
Learning Outcomes
Types of statements in Python Statement of Flow Control Program Logic Development Tools if statement of Python Repetition of Task - A necessity The range() function Iteration / Looping statement break and continue statement
VINOD KUMAR VERMA, PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), KV NO.1 TEZPUR
for more updates visit:
Types of Statement in Python
Statements are the instructions given to computer to perform any task. Task may be simple calculation, checking the condition or repeating action.
Python supports 3 types of statement:
Empty statement Simple statement Compound statement
VINOD KUMAR VERMA, PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), KV NO.1 TEZPUR
for more updates visit:
Empty Statement
It is the simplest statement i.e. a statement which does nothing. It is written by using keyword ? pass
Whenever python encountered pass it does nothing and moves to next statement in flow of control
Required where syntax of python required presence of a statement but where the logic of program does. More detail will be explored with loop.
VINOD KUMAR VERMA, PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), KV NO.1 TEZPUR
for more updates visit:
Simple Statement
Any single executable statement in Python is simple statement. For e.g.
Name = input("enter your name ") print(name)
VINOD KUMAR VERMA, PGT(CS), KV OEF KANPUR & SACHIN BHARDWAJ, PGT(CS), KV NO.1 TEZPUR
................
................
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 searches
- positive and normative statements examples
- positive and normative statements economics
- mission and purpose statements sample
- vision and mission statements pdf
- mission and vision statements in healthcare
- positive and negative statements examples
- simple and compound statements math
- vision and mission statements examples
- positive and normative statements in economics
- positive and normative statements about healthcare
- values and mission statements templates
- positive and normative statements pdf