Question: 1 Write a python program that will take input from the user until the user gives "STOP" as input. In every line the user will provide input as follow: [Brand Name] [PRICE] Your task is to...


need it urgently please


#Python code


Question: 1<br>Write a python program that will take input from the user until the user<br>gives

Extracted text: Question: 1 Write a python program that will take input from the user until the user gives "STOP" as input. In every line the user will provide input as follow: [Brand Name] [PRICE] Your task is to create a dictionary where the brand's name will be key and the value will be a list of that brand's watches ID. ID generate process: inputno_FirstTwoLetterOfBrand_Price. Finally print the dictionary. Sample Input 1: OMEGA 10000 TITAN 5000 TITAN 3000 CREDENCE 150000 OMEGA 12000 CREDENCE 90000 STOP Sample Output 1: {'OMEGA': ['1_OM_10000', '5_OM_12000'], 'TITAN": [2_TI_5000', '3_TI_3000'], 'CREDENCE': ['4_CR_150000', '6_CR_90000']} Sample Input 2: CREDENCE 5000 CREDENCE 11000 OMEGA 8000 TITAN 7500 QUARTZ 8000 CASIO 6000 CASIO 7000 STOP

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here