SURGERY RESIDENT BLOG

And review books to boot!

Python Multiple Choice Questions: if Statements

Python Multiple Choice Questions: if Statements

True or false: The execution of this program does not resume after ‘else:’ because ‘else:’ determines the end of the program.

 
if <condition1>:

   <indented code block 1>

elif <condition2>:

   <indented code block 2>

elif <condition 3>:

   <indented code block 3>

else:

   <indented code block last>

<non-indented statement>

False. The excecution will always resume with the <non-indented statement>  statement.

SOURCE
Introduction to Computing Using Python: An Application Development Focus

Share

Categorised as: Uncategorized


Comments are closed.

Powered by Google Talk Widget