0% found this document useful (0 votes)
4 views

Assignment 4_In-built Data Structures

The document lists various programming tasks related to data structures in Python, including operations on lists, tuples, dictionaries, and sets. Each task outlines a specific program to create, manipulate, and analyze these data structures. The document serves as a guide for learning and practicing Python programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 4_In-built Data Structures

The document lists various programming tasks related to data structures in Python, including operations on lists, tuples, dictionaries, and sets. Each task outlines a specific program to create, manipulate, and analyze these data structures. The document serves as a guide for learning and practicing Python programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

• Name: Abhishek Biradar

• PRN:12411283

• Roll Number:41

• Batch:02

28) Program to Create and view elements of a list

29) Program to Create and view elements of a tuple


30) Program to access List Index and Values

31) Program to add two Lists


32) Program to check if a List is Empty or Not

33) Program to Find the Largest Number in a List


34) Program to Find the Second Largest Number in a List

35) Program to Put Even and Odd elements in a List into Two Different Lists
36) Program to Find all Numbers in a Range which are Perfect Squares and Sum of all Digits in the
Number is Less than 10

37) Program to Generate Random Numbers from 1 to 20 and Append Them to the List
38) Program to Remove the Duplicate Items from a List

39) Program to create and view a dictionary


40) Program to create and view elements of a set

41) Program to Print values of dictionary


42) Program to print all keys of dictionary

43) Program to insert and delete from dictionary


44)Program to sort (ascending and descending) a dictionary by value

45) Program to concatenate dictionaries to create a new one


46) Program to check whether a given key already exists in a dictionary.

47) Program to merge two Python dictionaries


48) Program to get the maximum and minimum value in a dictionary

49) Program to Add a list of elements to a set


50) Program to Update the first set with items that don’t exist in the second set

51) Program to Return a set of elements present in Set A or B, but not both
52) Program to Check if two sets have any elements in common.

53) Program to Remove items from set1 that are not common to both set1 and set2

You might also like