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
Development of UNIX: The original UNIX development was performed on a Digital PDP-7 minicomputer and later moved to a PDP-11 minicomputer, the forerunner of the VAX computer.

Looping Statement:  The purpose of a loop structure is to repeat certain tasks until some condition is satisfied. Several variations of a loop structure are available in each pro

They are used to reduce or enlarge the content of the counters. DEC INC DEC INSTRUCTION Idea: To diminish the operator. Syntax: DEC destiny This action subtracts 1 from the destiny

can u write my assignment for me

Application Software:   Application software is designed and developed to accomplish one or more specific task or solve a particular problem.    Application software may be

Data communication as a need developed in the 1960s with the interconnection of peripheral devices to mainframe computers. Within the immediate vicinity of the mainframe computer t



On-line and Realtime Systems An on-line system means that input and output devices are directly connected to the CPU irrespective of geographical location. Thus the user can di

1. What actions need to be taken when a program terminates or a process is killed? What if that process destruction is not the consequence of normal termination, but rather is the