logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Sean WoodComputer science
(5/5)

702 Answers

Hire Me
expert
Shannon HCriminology
(5/5)

992 Answers

Hire Me
expert
Akhil SachdevaFinance
(5/5)

817 Answers

Hire Me
expert
William DewarComputer science
(5/5)

853 Answers

Hire Me
Python Programming
(5/5)

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

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Module – 2 ASSIGNMENT

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.

 

Operators

Please implement by using Python

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

Please implement by using Python

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)
Attachments:

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!

330 Experts Online