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
board coloring

how to use expressions in c++ program with examble

how to use excel..


I need someone to help me with my Unix/Linux homework.

Question 1 Describe the following with respect to creating Web Forms in .Net environment- Web Form Life Cycle Creating a Web Form Write programs with corresponding

Browser Security: WWW is used for many applications today including Banking, reservation, trading,  e-commence and many such applications which require security and confidenti

-(9/14)log2(9/14)-(5/9)log2(5/9) calculate with solution.

Cache memory: To reduce the idle time of the CPU and increase the speed of processing, a fast memory can be used. This can be done by using a large size of main memory. But th

can you help me convert binary into decimals?