- Explain the concept/properties of Lists in Python with suitable example and state diagram.
- Explain the concept of mapping in Lists with state diagram.
- What are the different ways of traversing a list. Explain with an example for each.
- Describe any two operations on list with suitable example.
- Illustrate with an example slicing operator on lists.
- Illustrate the usage of list methods with suitable example.
- Write a program in python to illustrate the concept of reduce in Lists
- Write a program in python to illustrate the concept of filter in Lists
- 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.
- 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.
- Differentiate between pop and remove methods on Lists with suitable example.
- Illustrate with an example how to delete more than one element from a list.
- 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.
- Construct a code to convert a string to a List.
- Explain the concept of aliasing in List with suitable example.
- Compare and contrast Lists and Tuples.
- Create a list with nested list elements in it and iterate over them to print each element and subelement of a list.
- Explain the following operations in tuples.
- sum of two tuples
- Slicing operators
- Comparison of two tuples
- Assignments to variables
- List merits of dictionary over list.
- Demonstrate how a dictionary item can be represented as a list of tuples.
- Demonstrate how tuples can be used as keys in a dictionaries.
- Explain extracting data using regular expressions. Implement a python program to find for lines having ‘@‘ character sign between characters in a read text file.
- 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.
- 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.
- Write a program in python to illustrate the power of escape character along with regular expression.
Wednesday, April 1, 2020
Python Application Programming - Module 3 - 17CS664, 18CS55
Subscribe to:
Post Comments (Atom)
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...
-
Module 1 Define IOT. Explain Evolutionary phases of the internet What is IOT? Explain in detail on Genesis of IOT. What does IOT and digi...
-
List the key features of Python Programming Language. What is the role of a programmer?. List at least two skills required to be a best ...
-
1 a. Explain the entity integrity and referential integrity constraints. Why is each considered important. Give examples. b. Discuss eq...
No comments:
Post a Comment