Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1 - Create a set of numbers between 1 0 and 2 0 - Create another set of numbers between 5 and 1 5

Task 1
-Create a set of numbers between 10 and 20
-Create another set of numbers between 5 and 15
-Output to screen the difference of the two sets
-Output to screen the common numbers of the two sets
-Iterate through each value of sets one and two
Task 2
Create one list with 3 unique string values
Create another list with 3 unique integer values
Create a set that contains the 6 values of the lists create above
Add any value to the SET created.
Remove any string value of the set created
Create a new set that takes any 3 values of the first set (hint: conversion & slicing or iteration & adding)
Output the values that are not in both sets (a method exists)
Using 1 for loop, output all the values of both sets
Task 3
Create a dictionary of 3 key-value pairs
GET the value of one of the keys
Remove one of the keys
Output the dictionary using a loop in the format of key = value
Task 4
Create one list with 3 unique string values
Create another list with 3 unique double values
Create a dictionary where the keys are the string values and the values are the double values
Task 5
You are a store own
Create a dictionary of your inventory
The inventory should have 3 categories
Each category should have 2 items
You need to select a vendor
Create a dictionary of the vendor's inventory
The inventory should have 3 categories
Each category should have 2 items
Output the items that YOU have but the VENDOR does not have
Output the items that BOTH YOU and the VENDOR have
Ask the user for an item
Determine if the item is in STOCK (you have it)
Determine if vendor carries the item (vendor has it)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 22nd International Conference Dexa 2011 Toulouse France August/September 2011 Proceedings Part 1 Lncs 6860

Authors: Abdelkader Hameurlain ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2011th Edition

3642230873, 978-3642230875

More Books

Students also viewed these Databases questions

Question

Describe how stress makes us more vulnerable to disease.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

Explain the procedure for valuation of shares.

Answered: 1 week ago

Question

Which months of this year 5 Mondays ?

Answered: 1 week ago

Question

Define Leap year?

Answered: 1 week ago