Question
Write a python program using function to accept a list as parameter and print all the even number in the list.

Answer

Get the step-by-step solution for this question inside the Vidyadip app.

Get the answer in the app

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free

Similar questions

What is Pandas NumPy array?
WAP to find the sum of first n terms of the following series:
$x+x^2+x^3+\ldots$
Write the different types of plagiarism.
Write python program using function to find the sum of first n terms of the following series:

where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.

Write a script to create two lists of 5 floating point values each and then
(a) Sort the first list using sort() method and display it without using any loop
(b) Reverse the second list using reverse() method and display it without using any loop
(c) Append the second list to the first list using extend() method
(d) Delete all the elements from the second list using clear() method
(e) Display the first list (after performing the above operations)
(f) Input an integer from the user and find how many times does it exist in the first list using count() method

WAP to find the sum of first n terms of the following series:
$x-x^2+x^3+\ldots$
Write a program to accept a number from the user and to check whether the entered number is prime number or not. The program should be implemented in two ways to show the efficiency of the code.
Write a function addrecord() a add new record to the binary file “student” using list. The list should consist of student number, student name and marks of the student.
Write a menu driven program to do the following task:

1. Insert

2. Delete

3. Update

4. Display all

5. Search a Records

6. Create table

WAP using function to change the alternate index value of the element.