Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 6.14 KB

optional_exercises.md

File metadata and controls

81 lines (53 loc) · 6.14 KB

L1: Basics

Note: in some of these exercises, the solutions are shown as functions. If you see the def keyword in the solution, that's what's going on. We haven't learned functions yet, although you might be able to recognize some of the main ideas from C++. In any case, you can usually understand the solution just by focusing on what comes after the line involving def.

L2: Iteration + Control Flow

Note: in some of these exercises, the solutions are shown as functions. If you see the def keyword in the solution, that's what's going on. We haven't learned functions yet, although you might be able to recognize some of the main ideas from C++. In any case, you can usually understand the solution just by focusing on what comes after the line involving def.

L3: Collections

Note: in some of these exercises, the solutions are shown as functions. If you see the def keyword in the solution, that's what's going on. We haven't learned functions yet, although you might be able to recognize some of the main ideas from C++. In any case, you can usually understand the solution just by focusing on what comes after the line involving def.

L4: Functions I

L5: Functions II

L6: OOP

L7: Inheritance

L8: Iteration

L9: Numpy I

Note: most of the exercises on this page are helpful and nicely illustrated visually. I've selected just a few.

L10: Numpy II

Note: You can learn something useful from most of the exercises on the linked page. However, if you're not sure how to do something, it's worth trying to Google around for an appropriate numpy function rather than trying to build your approach "from scratch."

Pandas I (Manipulating Data Frames)

Pandas II (Summarizing Data Frames)

  • Split-apply-combine practice: Exercise 2. The easiest way to get the data for this example is to copy and paste the text into a CSV file and read it in via pd.read_csv()
  • Counting unique values: Exercise 15. You might want to Google around for a relevant function here.