Embed presentation
Download to read offline




![Q3:
5
⬥ Write a Python program to print the even
numbers from a given list
⬥ Sample List : [1, 2, 3, 4, 5, 6, 7, 8, 9]
⬥ Expected Result : [2, 4, 6, 8]](https://image.slidesharecdn.com/pythonsession05homeworkquestions-221115182451-015bf430/75/Python_Session05_Homeworkquestions-pptx-5-2048.jpg)







This document contains homework questions on Python functions. It asks the reader to write functions to: print their name, age and college with and without default arguments; print even numbers from a list; check if a number is prime; calculate a factorial; display an employee's name and salary with a default salary; accept a variable number of arguments; calculate addition and subtraction with a single return; and recursively calculate the sum from 0 to 10. It closes by thanking the reader and asking if they have any questions.




![Q3:
5
⬥ Write a Python program to print the even
numbers from a given list
⬥ Sample List : [1, 2, 3, 4, 5, 6, 7, 8, 9]
⬥ Expected Result : [2, 4, 6, 8]](https://image.slidesharecdn.com/pythonsession05homeworkquestions-221115182451-015bf430/75/Python_Session05_Homeworkquestions-pptx-5-2048.jpg)






