For example. I have a list of items in Json file: {"id":1, "name":"Thai Tea", "price": 2.99}, {"id":1, "name":"Banana",

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

For example. I have a list of items in Json file: {"id":1, "name":"Thai Tea", "price": 2.99}, {"id":1, "name":"Banana",

Post by answerhappygod »

For example. I have a list of items in Json file:
{"id":1, "name":"Thai Tea", "price": 2.99},
{"id":1, "name":"Banana", "price": 3.99},
{"id":1, "name":"Apple", "price": 4.99},
{"id":1, "name":"Rice", "price": 5.99},
{"id":1, "name":"Mango", "price": 6.99};
Write a python code using mergesort to sort the items by their
names and print it out.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply