Assignments
Assignments
2) What do you mean by variable? Does python allow explicit declaration of variables?
5) Explain the use of strings in python. Also explain ‘+’ and ‘*’ w. r. t. string.
UNIT II [10 Marks]
Python Operators and Control Flow Statements
8) Can we use keyword else with any loop? Justify your answer.
a) append() b) insert()
6. How to declare the tuple? Can we change or update the tuple? Justify your answer.
7. How to declare the set? Can we change iterate through set by using while loop? Justify
your answer.
8. Can we iterate through set by using for loop? Justify your answer.
9. Can we add new elements in set? Justify your answer with example.
13. Explain how to access dictionary element using index/key with example.
14. Explain different ways and function to remove key:value pair from dictionary
UNIT IV [14 Marks]
Python Functions, Modules and Packages
1. Define function.
4. Can python function return the value? Justify your answer with example.
5. Define and explain local variables and global variables with suitable examples.
8. Does the python allow the nested function definitions? Justify your answer.
that program.
5. Can we call constructor and destructor function manually in python? Justify your
answer.
class.
8. Python dose not allowed method overloading. Then explain alternate ways of