From the course: Python: Programming Efficiently

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Analyze Olympic medalist data

Challenge: Analyze Olympic medalist data - Python Tutorial

From the course: Python: Programming Efficiently

Start my 1-month free trial

Challenge: Analyze Olympic medalist data

(instrumental music) - [Instructor] We've seen how you can use comprehensions and collections to answer questions whether simple or more complex about a set of data. For your challenge, I'd like you to take up the Olympic medalist data set once more, and answer two more queries. Who are the four athletes who want the most medals? And who are the athletes who won medals in at least four events? The second query is going to be a little harder, you should be able to take the code that we wrote together and modify it as needed. Here is some code to load the data. Just a hint, the same event may be described with slightly different names in different years. We have seen how to answer simple questions about data, using Python comprehensions and collections. There can be many enterprise uses for such queries. When you work with business and customer data. You may write them as throw away snippets of code, used interactively to…

Contents