GitHub

@@ -22,7 +22,7 @@ In an earlier lecture, we learned some foundations of object-oriented programmin

22222323

The objectives of this lecture are

242425-

* cover OOP in more dept

25+

* cover OOP in more depth

2626

* learn how to build our own objects, specialized to our needs

27272828

For example, you already know how to

@@ -32,14 +32,14 @@ For example, you already know how to

32323333

So imagine now you want to write a program with consumers, who can

343435-

* hold and spend cas

35+

* hold and spend cash

3636

* consume goods

37-

* work and earn cas

37+

* work and earn cash

38383939

A natural solution in Python would be to create consumers as objects with

40404141

* data, such as cash on hand

42-

* methods, such as `buy` or `work` that affect this dat

42+

* methods, such as `buy` or `work` that affect this data

43434444

Python makes it easy to do this, by providing you with **class definitions**.

4545

@@ -91,7 +91,7 @@ A *class definition* is a blueprint for a particular class of objects (e.g., lis

9191

It describes

92929393

* What kind of data the class stores

94-

* What methods it has for acting on these dat

94+

* What methods it has for acting on these data

95959696

An *object* or *instance* is a realization of the class, created from the blueprint

9797

@@ -363,7 +363,7 @@ k_{t+1} = \frac{s z k_t^{\alpha} + (1 - \delta) k_t}{1 + n}

363363

Here

364364365365

* $s$ is an exogenously given saving rate

366-

* $z$ is a productivity paramete

366+

* $z$ is a productivity parameter

367367

* $\alpha$ is capital's share of income

368368

* $n$ is the population growth rate

369369

* $\delta$ is the depreciation rate

@@ -564,7 +564,7 @@ plt.show()

564564565565

The next program provides a function that

566566567-

* takes an instance of `Market` as a paramete

567+

* takes an instance of `Market` as a parameter

568568

* computes dead weight loss from the imposition of the tax

569569570570

```{code-block} python3

Read the original on github.com ↗