+ 2

Does all the if statements will be checked in the loop or if one condition satisfies does it quit the loop or continue

17th Jun 2019, 7:23 AM
Archana P K
4 odpowiedzi
+ 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 ✌🏼
17th Jun 2019, 7:26 AM
thiru mal
thiru mal - avatar
+ 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✌🏼
17th Jun 2019, 9:57 AM
thiru mal
thiru mal - avatar
+ 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
17th Jun 2019, 9:40 AM
Archana P K
+ 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.
17th Jun 2019, 9:42 AM
Archana P K