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

"Just how are we capable to get a computer to performe intelligent tasks?" One thing to answer the question is to tell that: Logic generate a science out of many forms of re

Explain in brief the asymptotic notations

QUESTION (a) Given the graph as shown in figure, apply Lagrangian technique to complete the table assuming μ=1 and T=14                        Path P

Completeness in search - artificial intelligence: It's also importance trying to calculate the number of solutions to a problem, and the density of those solutions amongst the

Question 1 What are the differences between closed and open systems? Question 2 What are the characteristics of a good documentation? Question 3 What are the steps invol

Write an Assembly program that reads an integer (-32,768 through 32,767) in decimal and prints its equivalent in binary. The output must show all 16 bits. And you must use a loop

Security threats on internet:  The Internet has many advantages; however, it also opens up security threat. In this section we just want to highlight some of the threats that

i am currently studying my computer science engineering 2nd yr. i am unable to select what specification should i take please help me