0

How to add multiple conditions in a loop in python?

how can I add multiple conditions to satisfy in a loop in python like in c++ we can simply use comma. anything in python like that?

25th Dec 2017, 7:05 AM
Mayank
Mayank - avatar
1 Answer
+ 2
I would use boolean-operators like while a < 100 AND a%3 == 0:
25th Dec 2017, 7:52 AM
Sebastian Keßler
Sebastian Keßler - avatar