(5/5)

Hire Me
(5/5)

Hire Me
(5/5)

Hire Me
(4/5)

Hire Me
(5/5)

# Construct 2 lists containing all the available data types (integer, float, string, complex and Boolean) and do the following..

INSTRUCTIONS TO CANDIDATES

Module – 2 ASSIGNMENT

Data Types

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.

Operators

1. A. Write an equation which relates   399, 543 and 12345

B.  “When I divide 5 with 3, I got 1. But when I divide -5 with 3, I got -2”—How would you justify it.

2.  a=5,b=3,c=10.. What will be the output of the following:

A. a/=b

B. c*=5

3. A. How to check the presence of an alphabet ‘s’ in word “Data Science” .

B. How can you obtain 64 by using numbers 4 and 3 .

Variables

1. What will be the output of the following (can/cannot):

a. Age1=5

b. 5age=55

2. What will be the output of following (can/cannot):

a. Age_1=100

b. age@1=100

3. How can you delete variables in Python ?

(5/5)

## Related Questions

##### . The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

##### . Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

##### . The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

##### . Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

##### . The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

319 Experts Online