9- [Optional]Write a Python script to concatenate the following dictionaries to create a new one. colorDict1 = {'R': 'Red', 'G': 'Green', 'W': 'White', 'B': 'Black'} colorDict2 = {'P':'Pink',...

Python
9- [Optional]Write a Python script to concatenate the following dictionaries to create a new one.<br>colorDict1 = {'R': 'Red', 'G': 'Green', 'W': 'White', 'B': 'Black'}<br>colorDict2 = {'P':'Pink', 'Y':'Yellow'}<br>10-[OptionalJWrite a Python script to enter a key between 1 and 9 and then check whether the Key<br>already exists in dictionary Dict. If it exists then the output should be True, otherwise it<br>should be False.<br>Dict= {0:'A',1:'B', 2:'C', 4:'D'}<br>11-[Optional]Write a Python script to enter a value between 'A' and 'Z' and then check<br>whether a given Value already exists in dictionary Dict. If it exists then the output should<br>be True, otherwise it should be False.<br>Dict= {0:'A’,1:'B’, 2:’C’, 4:'D’}<br>

Extracted text: 9- [Optional]Write a Python script to concatenate the following dictionaries to create a new one. colorDict1 = {'R': 'Red', 'G': 'Green', 'W': 'White', 'B': 'Black'} colorDict2 = {'P':'Pink', 'Y':'Yellow'} 10-[OptionalJWrite a Python script to enter a key between 1 and 9 and then check whether the Key already exists in dictionary Dict. If it exists then the output should be True, otherwise it should be False. Dict= {0:'A',1:'B', 2:'C', 4:'D'} 11-[Optional]Write a Python script to enter a value between 'A' and 'Z' and then check whether a given Value already exists in dictionary Dict. If it exists then the output should be True, otherwise it should be False. Dict= {0:'A’,1:'B’, 2:’C’, 4:'D’}

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here