Computer Science, asked by sagarbeast03pejecq, 1 year ago

Which one is correct for the nested controlling statements in Python?

 a. Elseif

 b. Elif

 c. Ifwhile

 d. none

Answers

Answered by Arslankincsem
2

The correct answer to this question is option b.Elif.


The correct for the nested controlling statements in Python is Elif.


The statement can be if….elif…else statement inside another if…elif..else statement.


This is termed as nesting in computer programming.


There can be a number of statements which can be nested inside one another.

Answered by smartbrainz
0

"Elif" is correct for the nested controlling statements in Python

Option (b)

Explanation:

  • 'Python' supports to specify 'multiple conditions' by using an “elif” clause with each of the expression. By using "elif" condition, the program branch out the third condition or possibility when the other condition goes wrong or incorrect.
  • The other if-else structures can only tackle two results, e.g. Valid or Wrong. However, the expression next to "if" can also be used to evaluate a value different from that of the boolean. It means having more conditions, not just a single “else” block.

To know more

Differentiate between displaying and printing method in python???

https://brainly.in/question/11346468

Write a program in python to read three numbers in three variables and swap first two variables with the sums of first and second,second and third third no.respectively

https://brainly.in/question/11288220

Similar questions