Computer Science, asked by kamal1137, 1 day ago

what is the purpose of 'else' in a loop​

Answers

Answered by pradeep15176
0

Answer:

The else clause of a loop ( for / while ) gets executed only if the loop has completed its execution fully without hitting a break statement (in other words, loop has completed normally). The statements inside the loop's else clause will get executed once after the loop has completed normally

Explanation:

In python language

Answered by ramkumar8252554129
0

Explanation:

when if expression returns false then it execute else

Similar questions