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 - Python Tutorial
From the course: Python: Programming Efficiently
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Writing Python efficiently50s
-
(Locked)
Python vs. C4m 40s
-
(Locked)
Design efficient loops7m 3s
-
(Locked)
Comprehensions and generators6m 41s
-
(Locked)
Exploit Python collections7m 14s
-
(Locked)
Write Pythonic code6m 44s
-
(Locked)
Challenge: Analyze Olympic medalist data1m 20s
-
(Locked)
Solution: Analyze Olympic medalist data1m 33s
-
(Locked)
-
-
-
-