Advanced Python Programming_Assignment 1(CO1)
Advanced Python Programming_Assignment 1(CO1)
Assignment: 1 (CO1)
Title: Basic of python data structure - Dictionary, Tuple and Set
CO Cognitive
Level
1. Define the string and its methods. CO1 R
2. Explain the List and its methods with example. CO1 R
3. Demonstrate List Operations with example. CO1 U
4. Define Tuple and how is it created in Python? CO1 R
5. What is indexing and negative indexing in Tuple? CO1 R
6. Demonstrate Tuple Operations with example. CO1 U
7. Demonstrate Tuple Built-in functions and methods with example. CO1 U
8. Explain Nested Tuple with example. CO1 R
9. Differentiate between tuple and list. CO1 U
10. Define Set and how is it created in python? CO1 R
11. Explain accessing items in set. CO1 R
12. Demonstrate Set operations in python CO1 U
13. Write how to add, remove an element from a set. CO1 A
14. Explain what is dictionary and how it is created in Python? CO1 R
15. What is meant by key-value pairs in a dictionary? CO1 R
16. Explain Dictionary Built-in functions and methods. CO1 R
17. Write down the properties of dictionary CO1 R
18. Write a program to input names of n employees and store them in a tuple. CO1 A
Also, input a name from the user and find if this employee is present in the
tuple or not.
19. Create a dictionary with the roll number, name and marks of n students in a CO1 A
class and display the names of students who have scored marks above 75.
20. Write a program to input n numbers from the user and store these numbers in CO1 A
a tuple. Print the maximum and minimum number from this tuple.