Division by zero problem with the code given to us


#1



https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/0/3?curriculum_id=4f89dab3d788890003000096#


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.


#2

Beg to differ. Zero is an even number.

0 % 2    # 0

#3

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