Answer the following questions.(Any Seven) 1. What is iteration in python? 2. What is slicing? 3. What is generator? 4. How can you convert string to number? 5. Mention the use of // operator in python? 6. What is dictionary in python? 7. What is the meaning of range function used in for loop? 8. How can you find the data type of an object in python?
[7 marks]Explain branching and iteration operation in python with example.
[7 marks]Write the general syntax of class declaration in python. Explain declaration of class and its object with example.
[7 marks]What is lambda function in python? Explain lambda function with example. Explain filter(), map() and reduce() functions in brief.
[7 marks]What is dictionary in Python? Explain with an example.
[7 marks]Give a comparison between List, Tuple and Dictionaries in Python.
[7 marks]What is module? Discuss various ways to use module in a python program.
[7 marks]What is Decorators? What is Generators? Explain both with example.
[7 marks]What is Exception? Explain exception handling with example.
[7 marks]What is the use of PyLab in Python? Explain the use of plot(), show() and title() functions of PyLab.
[7 marks]What is Data Frame? List out ways of creating data frame and explain any one with example. Also list out operations on data frame and explain anyone with example.
[7 marks]What is Mortgages? Explain various methods of Mortgages.
[7 marks]Briefly describe the methods of regular expression. How to use regular expressions on file? Explain with example.
[7 marks]Discuss various file handling methods available in python.
[7 marks]What is inheritance? What are the different types of inheritance available in python? Explain each with example.
[7 marks]Explain various python function used to connect with Mysql database.
[7 marks]What do you mean by Assertions? Support your answer with code.
[7 marks]