Android & iPhone apps are coming soon. Log in for a plan and reminders made for you →

Coding basics · 18 of 20

Count the even numbers

Return how many numbers in the list are even.

Examples

Input nums = [1, 2, 3, 4, 6]

Output 3

Input nums = [1, 3, 5]

Output 0

Your code · Python

Stuck?