+ 2
Does all the if statements will be checked in the loop or if one condition satisfies does it quit the loop or continue
9 Antworten
+ 2
I guess you are asking about if statement inside a loop.
If that's the case, unless you use break or continue statement, all if statements inside the loop will be checked ✌🏼
+ 2
From Archana P K 's profile it's clear that they are new to Solo learn and only has python in here current courses. Even I had to go through the profile to understand the context.
But ~ swim ~ , as we are used to Solo learn, we should be more welcome to New comers.(just sayin😅)
And Archana P K, try to frame your questions better. Add relevant tags to your questions. Have fun coding✌🏼
+ 1
I have asked this question regarding python if statement wherein which I have not seen any break of jump function to end Elif statements also when I have just run the example coding I have seen two outputs displaying for two conditions are satisfied
+ 1
But in a test question I have given the output of the first condition as answer as it satisfied the condition and it said that is correct answer. But there was a second condition which also satisfies condition.