Please to wrriten a python code: It contains info about the winners of the Ice Hockey World Championships from 2001 to 2019. First, open the file and deserialize it using JSON API to construct a corresponding Python object. Then, using list comprehension generate a list of years in which Canada won silver or bronze. json flie:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Please to wrriten a python code: It contains info
about the winners of the lce Hockey World
Championships from 2001 to 2019.
First, open the file and deserialize it using JSON API
to construct a corresponding Python object.
Then, using list comprehension generate a list of
years in which Canada won silver or bronze.
json flie:
{
"2001": {"gold":"Czech Republic ",
"silver":"Finland", "bronze":"Sweden"},
"2002": {"gold":"Slovakia ", "silver":"Russia",
"bronze":"Sweden"},
"2003": {"gold":"Canada", "silver":"Sweden",
"bronze":"Slovakia "},
"2004": {"gold":"Canada", "silver":"Sweden",
"bronze":"USA"},
"2005": {"gold":"Czech Republic",
"silver":"Canada", "bronze":"Russia"},
"2006": {"gold":"Sweden", "silver":"Czech
Republic", "bronze":"Finland"},
"2007": {"gold":"Canada", "silver":"Finland",
"bronze":"Russia"},
"2008": {"gold":"Russia", "silver":"Canada",
"bronze":"Finland"},
"2009": {"gold":"Russia", "silver":"Canada",
"bronze":"Sweden"},
"2010": {"gold":"Czech Republic",
"silver":"Russia", "bronze":"Sweden"},
"2011": {"gold":"Finland", "silver":"Sweden",
"bronze":"Czech Republic"},
"2012": {"gold":"Russia", "silver":"Slovakia",
"bronze":"Czech Republic"},
"2013": {"gold":"Sweden", "silver":"Switzerland",
"bronze":"USA"},
"2014": {"gold":"Russia", "silver":"Finland",
"bronze":"Sweden"},
"2015": {"gold":"Canada", "silver":"Russia",
"bronze":"USA"},
"2016": {"gold":"Canada", "silver":"Finland",
"bronze":"Russia"},
"2017": {"gold":"Sweden", "silver":"Canada",
"bronze":"Russia"},
"2018": {"gold":"Sweden", "silver":"Switzerland",
"bronze":"United States"},
"2019": {"gold":"Finland", "silver":"Canada",
"bronze":"Russia"}
}
Transcribed Image Text:Please to wrriten a python code: It contains info about the winners of the lce Hockey World Championships from 2001 to 2019. First, open the file and deserialize it using JSON API to construct a corresponding Python object. Then, using list comprehension generate a list of years in which Canada won silver or bronze. json flie: { "2001": {"gold":"Czech Republic ", "silver":"Finland", "bronze":"Sweden"}, "2002": {"gold":"Slovakia ", "silver":"Russia", "bronze":"Sweden"}, "2003": {"gold":"Canada", "silver":"Sweden", "bronze":"Slovakia "}, "2004": {"gold":"Canada", "silver":"Sweden", "bronze":"USA"}, "2005": {"gold":"Czech Republic", "silver":"Canada", "bronze":"Russia"}, "2006": {"gold":"Sweden", "silver":"Czech Republic", "bronze":"Finland"}, "2007": {"gold":"Canada", "silver":"Finland", "bronze":"Russia"}, "2008": {"gold":"Russia", "silver":"Canada", "bronze":"Finland"}, "2009": {"gold":"Russia", "silver":"Canada", "bronze":"Sweden"}, "2010": {"gold":"Czech Republic", "silver":"Russia", "bronze":"Sweden"}, "2011": {"gold":"Finland", "silver":"Sweden", "bronze":"Czech Republic"}, "2012": {"gold":"Russia", "silver":"Slovakia", "bronze":"Czech Republic"}, "2013": {"gold":"Sweden", "silver":"Switzerland", "bronze":"USA"}, "2014": {"gold":"Russia", "silver":"Finland", "bronze":"Sweden"}, "2015": {"gold":"Canada", "silver":"Russia", "bronze":"USA"}, "2016": {"gold":"Canada", "silver":"Finland", "bronze":"Russia"}, "2017": {"gold":"Sweden", "silver":"Canada", "bronze":"Russia"}, "2018": {"gold":"Sweden", "silver":"Switzerland", "bronze":"United States"}, "2019": {"gold":"Finland", "silver":"Canada", "bronze":"Russia"} }
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY