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 ?
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
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
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme