Count the even numbers
easyLists10 XP
Return how many numbers in nums are even.
Examples
- Input: nums = [1, 2, 3, 4]Output: 2
- Input: nums = [1, 3, 5]Output: 0
Examples use JSON: true/false/null are True/False/None in Python.
Return how many numbers in nums are even.
Examples use JSON: true/false/null are True/False/None in Python.
Run examples checks the examples above. Submit also runs 3 hidden tests.