Report question

Question: Pythonic way to combine for-loop and if-statement