Question: Hi, I need help with this question please. Given the list of shop defined in the cell below, write python code to: Process the list

Hi, I need help with this question please. Given the list ofshopdefined in the cell below, write python code to:

  1. Process the list of dictionaries to develop list ofshop_name.
  2. Join theshop_namewith a semi-colon followed by space to form a single string e.g.Fobo, Tea house, Lee and Looand print the string

The steps to solve this problem are:

1. develop an empty list (shop_name)

2. use a for loop to extract shop_name from the dictionaries and store it in the list

3. print the list using join as a single string

Hi, I need help with this question please. Given the list ofshopdefined

shops - [ { "shop_id": 101, "shop_name": "Fobo" h { "shop_id": 102, "shop_name": "Tea house" }. { "shop_id": 103, "shop_name": "Lee and Loo" } # Write your code below this line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!