Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSE_120 Sir_it_is_urgent.do_fast._Please_solve_this_code_in_python3_paste_with_proper_intendent_blocks_bypressing(CTRL+SHIFT+V),Also_please_provide_code_screenshot,_Thank_you. Do_not_need_comments. SKIP_BUILT_IN_FUNCTIONS. Just_give_me_solution_as_fast_as_possible._I_am_running_out_of_time._Attach_a_screenshot_with_yoursolve. Question: Question: 1 Write a python program that will take input from the user until the user gives STOP as

CSE_120

Sir_it_is_urgent.do_fast._Please_solve_this_code_in_python3_paste_with_proper_intendent_blocks_bypressing(CTRL+SHIFT+V),Also_please_provide_code_screenshot,_Thank_you.

Do_not_need_comments. SKIP_BUILT_IN_FUNCTIONS. Just_give_me_solution_as_fast_as_possible._I_am_running_out_of_time._Attach_a_screenshot_with_yoursolve.

Question:

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 brands name will be key and the value will be a list of that brands 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 Sample Output 2: {'CREDENCE': ['1_CR_5000', '2_CR_11000'], 'OMEGA': ['3_OM_8000'], 'TITAN': ['4_TI_7500'], 'QUARTZ': ['5_QU_8000'], 'CASIO': ['6_CA_6000', '7_CA_7000']}

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

ISBN: 133544613, 978-0133544619

More Books

Students also viewed these Databases questions