Division by zero problem with the code given to us



NO error message. This is again an error with your code. The list you give has zero in it, then you want us to print the even numbers. Your "correct" answer has a zero and zero is NOT an even number.

Replace this line with your code.


Beg to differ. Zero is an even number.

0 % 2    # 0


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.