Question: in python please You are given a list of numbers stored in a variable called nums. Write a function named first_three_even() that returns the first
in python please
You are given a list of numbers stored in a variable called nums. Write a function named first_three_even() that returns the first 3 even numbers in nums as the function output. If there are fewer than 3 even numbers in the list, first_three_even() returns all the even numbers. If none of the numbers are even, first_three_even() returns an empty list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
