Do as directed.
[ marks]Write “lambda” function to generate total of two values ( x and y). ii) Write assertion syntax to check that given input for mark is upto 100. 01 iii) What is decorator in python? iv) What is the use of reduce()?
[2 marks]What is the difference between method and function?
[2 marks]Explain List, tuple and dictionary in python.
[6 marks]i) Explain how to use local and global variables in python. ii) Explain “in”, “not in”, “is”, “is not” in Python with example.
[3 marks]Explain using code snippet for read and write operation in python from file Employee (employeeNo, name, salary).
[7 marks]Explain using code snippet for insert, update and delete rows operation into mysql database in python from table Employee (employeeNo, name, salary).
[7 marks]Explain how one can handle exceptions with try, except, and finally in Python.
[7 marks]Explain Formal arguments, Actual Arguments, Positional Arguments, Keyword Arguments and Default Arguments implementation in functions.
[7 marks]Explain how to implement user defined exception in python.
[7 marks]What is modules? Discuss various ways to import module in python.
[7 marks]What is Data frame? Explain read_csv() , head() and tail() methods
[7 marks]i) Explain file handling seek() and tell() methods used in python. ii) Explain slicing in python List using suitable example.
[3 marks]Explain below function of pylab library with suitable examples. 1.figure(), 2. plot(), 3.savefig(), 4.title(), 5.xlabel(), 6.ylabel(), 7. legend()
[7 marks]i) Explain list comprehension and cloning in python. ii) Explain read() and readlines() methods used on files in python.
[3 marks]Write the general syntax of class declaration in python. Explain declaration of class and its object with example
[7 marks]Explain re.match( ) and re.search( ) methods using suitable example.
[7 marks]What is inheritance? Write a program to describe inheritance in python.
[7 marks]Discuss various special symbols and characters used in Regular expression
[7 marks]