Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If I want to print 3 lines of dict (a) by changing using new_sku, new_model_no, rec_no how to do this in python programming. show output
If I want to print 3 lines of dict (a) by changing using new_sku, new_model_no, rec_no how to do this in python programming. show output and please use loops in program
In [123]: a = { MODEL ID': 6, "MODEL_NAME': 'device_rec', MODEL RUN TS': '20210910 00:00:00', 'VALIDITY TS': '20220310 00:00:00', "SERVICE_NUMBER":9, 'OUTPUT":[{ 'rec_sku':67, 'model no':10},{'rec_no':50}]} In [124]: a Out[124]: {"MODEL_ID': 6, "MODEL_NAME': 'device rec), MODEL RUN TS': '20210910 00:00:00', 'VALIDITY TS': 20220310 00:00:00', SERVICE NUMBER': 9, 'OUTPUT': [{'rec_sku': 67, 'model_no': 10}, {'rec_no': 50}]} In [125]: new_sku=[56,47,29,30] new_model_no=[11,34,54] I rec_no=[70,90,44]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started