Wednesday, April 1, 2020

Python Application Programming - Module 3 - 17CS664, 18CS55


  1. Explain the concept/properties of Lists in Python with  suitable example and state diagram.
  2. Explain the concept of mapping in Lists with state diagram.
  3. What are the different ways of traversing a list. Explain with an example for each.
  4. Describe any two operations on list with suitable example.
  5. Illustrate with an example slicing operator on lists.
  6. Illustrate the usage of list methods with suitable example.
  7. Write a program in python  to illustrate the concept of reduce in Lists
  8. Write a program in python  to illustrate the concept of filter in Lists
  9. Write a function called Nested_List_Sum that takes a nested list of integers and add up the elements from all of the nested lists.
  10. Write a function that takes a list of string as argument and convert all element to uppercase and return a new nested list and display.
  11. Differentiate between pop and remove methods on Lists with suitable example.
  12. Illustrate with an example how to delete more than one element from a list.
  13. Write a program to read n numbers from user and store them in a list. Find the sum, avg, max, min values from the List.
  14. Construct a code to convert a string to a List.
  15. Explain the concept of aliasing in List with suitable example.
  16. Compare and contrast Lists and Tuples.
  17. Create a list with nested list elements in it and iterate over them to print each element and subelement of a list.
  18. Explain the following operations in tuples.
    1. sum of two tuples
    2. Slicing operators
    3. Comparison of two tuples
    4. Assignments to variables
  19. List merits of dictionary over list.
  20. Demonstrate how a dictionary item can be represented as a list of tuples.
  21. Demonstrate how tuples can be used as keys in a dictionaries.
  22. Explain extracting data using regular expressions. Implement a python program to find for lines having ‘@‘ character sign between characters in a read text file.
  23. Write a python program using findall() to find the lines with phone numbers (10 digit) and extract one or more phone numbers from each of those lines.
  24. Write a program that searches for a line that starts with ‘1JS’ followed by any non whitespace character comprising of valid USN number and colon followed by a space and any meaningful student name.
  25. Write a program in python to illustrate the power of escape character along with regular expression.


No comments:

Post a Comment

Database Management systems - Module 2

1 a. Explain the entity integrity and referential integrity constraints.   Why is each considered important. Give examples.    b. Discuss eq...