From 60f480776b49383385670dba48f30ecd68220fb7 Mon Sep 17 00:00:00 2001 From: ghurley Date: Wed, 17 Jan 2018 19:22:56 -0800 Subject: [PATCH] Typo and tiny code change for clarity Code change conforms to style used in later portions of the notebook. --- ipynb/Economics.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipynb/Economics.ipynb b/ipynb/Economics.ipynb index 340bd83..138cfb9 100644 --- a/ipynb/Economics.ipynb +++ b/ipynb/Economics.ipynb @@ -48,7 +48,7 @@ "N = 5000 # Default size of the population\n", "MU = 100. # Default mean of the population\n", "\n", - "population = [random.gauss(mu=MU, sigma=MU/5) for actor in range(N)]" + "population = [random.gauss(mu=MU, sigma=MU/5) for _ in range(N)]" ] }, { @@ -182,7 +182,7 @@ "outputs": [], "source": [ "def random_split(A, B):\n", - " \"Take all the money uin the pot and divide it randomly between the two actors.\"\n", + " \"Take all the money in the pot and divide it randomly between the two actors.\"\n", " pot = A + B\n", " share = random.uniform(0, pot)\n", " return share, pot - share"