0% found this document useful (0 votes)
32 views1 page

ASSIGNMENT-1 Data Types: Please Implement by Using Python

The document provides instructions to create lists containing data types, concatenate them and find frequencies. It also asks to create sets of numbers, find common and uncommon elements, and remove an element. Finally, it instructs to make a dictionary with state names as keys and COVID cases as values, then print keys and update an entry.

Uploaded by

Anakha Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

ASSIGNMENT-1 Data Types: Please Implement by Using Python

The document provides instructions to create lists containing data types, concatenate them and find frequencies. It also asks to create sets of numbers, find common and uncommon elements, and remove an element. Finally, it instructs to make a dictionary with state names as keys and COVID cases as values, then print keys and update an entry.

Uploaded by

Anakha Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

ASSIGNMENT-1 Data Types

Please implement by using Python.

1. Construct 2 lists containing all the available data types (integer, float, string, complex and
Boolean) and do the following..
a. Create another list by concatenating above 2 lists
b. Find the frequency of each element in the concatenated list.
c. Print the list in reverse order.

2. Create 2 Sets containing integers (numbers from 1 to 10 in one set and 5 to 15 in other set)
a. Find the common elements in above 2 Sets.
b. Find the elements that are not common.
c. Remove element 7 from both the Sets.

3. Create a data dictionary of 5 states having state name as key and number of covid-19 cases as
values.
a. Print only state names from the dictionary.
b. Update another country and it’s covid-19 cases in the dictionary.

You might also like