Assignment III Python
Assignment III Python
DATE-
Q.1 How to define and call function in Python ? Explain different parts of a function.
Q.3 What do you mean by sets? Explain the operations performed on sets.
b. Write various built-in list methods? What are mutable sequences? Discuss with example.
b. Explain higher order function with respect to lambda expression. Write a Python code to
count occurrences of an element in a list
Q.5 Discuss function in Python with its parts and scope. Explain with example. (Take simple
calculator with add, subtract, division and multiplication).
Q6. How do we create a dictionary in Python ? Explain the operations performed on dictionary
with example.
Himani
CSE