You are on page 1of 1

UNIT IV [14 Marks]

Python Functions, Modules and Packages


1. Define function
2. State use of namespace in python.
3. Write python program using module, show how to write and use module by
importing it.
4. What is local and global variables? Explain with appropriate example.
5. Explain Numpy package in detail.
6. Example module. How to define module.
7. How to create user-defined function in python.
8. Explain the concept of parameter passing to python function.
9. Write a short note on: Functions with default arguments.
10. What is key ward args in python? Explain its use.
11. Write a python program to demonstrate variable length arguments. Also
explain that program.
12. Explain from……import statement.
13. Explain python built-in module.
14. Explain use of lambda expression with example.

You might also like