IF.ELSE Statement of python , Basic Computer Science



Conditional constructs are used to integrate decision making into programs. The outcome of this decision making determines the series in which a program will execute instructions. You can manage the flow of a program by with conditional constructs.
The if statement:
The if statement of Python is close to that of other languages. The if statement includes a logical expression using which data is evaluated, and a decision is made based on the result of the comparison.
The syntax of the if statement is:
if expression:
statement (s)
Here if statement, condition is assessed primary. If condition is true that is, if the value is nonzero then the statement(s) block are executed. or else, the next statement following the statement(s) block is executed.

Posted Date: 5/5/2012 4:06:33 AM | Location : United States







Related Discussions:- IF.ELSE Statement of python , Assignment Help, Ask Question on IF.ELSE Statement of python , Get Answer, Expert's Help, IF.ELSE Statement of python Discussions

Write discussion on IF.ELSE Statement of python
Your posts are moderated
Related Questions
I want the detailed theory about the options which occur when we right click on a folder.

advantages of file base system

The project designs a school computer lab with the necessary hardware and software components along with the IP address for different components. The computer lab consists of one I

write advantages and disadvantages of private and public network


Network Control, Engineering and Management Network control in this sense involves traffic management, and the engineering of the networks to support varying traffic loads. In

A line holds only whitespace, probably with a comment, is identified as a blank line, and Python completely avoids it. In an interrelated interpreter session, you need to enter an

Question 1 Define the following terms                           1) Pipelining 2) Super Pipelining 3) Dynamic Execution 4) Multiprocessing 5) Multimedia Extensions Question 2

The main components of a computer system at a basic level Computer System We call computer system to the whole configuration of a computer, as well as the peripheral units and the

Problem 1 What is precedence of operators? How are expressions evaluated using precedences? Defining precedence of operators Explanation of how expressions are evaluat