The elif Statement, Basic Computer Science


The elif statement permits you to check multiple expressions for truth value and execute a block of code the moment one of the conditions estimates to true.
similar to the else, the elif statement is optional. Though, unlike else, for which there can be at most one statement, there can be an arbitrary number of elif statements next an if.
The syntax of the if...elif statement is:
if expression first:
statement(s)
elif expression second:
statement(s)
elif expression third:
statement(s)
else:statement(s)
Posted Date: 5/5/2012 4:19:02 AM | Location : United States







Related Discussions:- The elif Statement, Assignment Help, Ask Question on The elif Statement, Get Answer, Expert's Help, The elif Statement Discussions

Write discussion on The elif Statement
Your posts are moderated
Related Questions
Explain about MIDI audio

Ultrasonic Waves: Sound waves outside the audible range of humans. Ultrasonic waves consist of frequencies greater than 20 kHz and exist in excess of 25 MHz. Applications include i

what is charactersics of mobile computing

The Internet is replete with great success stories and sad failures. While it is always nice to hear about the successes, more can probably be learned from the failures. In this ca

Desktop computer: Desktop computer is popularly known as personal computer (PC). As the name suggest, it is generally small in size and fitted on the top of a desk which can b

write an algorithm and psuedo code for the operation of the cramer`s rule


In this assignment, you need to experiment with computer system measurements. Firstly, pick a platform to study. Any Unix-based system (such as a PC running some version of Linu

#to determine whether given year is leap year or not

whats the out put of int main(){ int n=310; funcone(n); functwo(&n); cout return 0; } void funcone(intn) n=240; } void func two(intn*) { n=120; }