Skip to content

Commit 065a8ad

Browse files
ColdFire87wesm
authored andcommitted
Update appendix_python.ipynb (wesm#38)
Bug fix (variable missmatch) in python appendix
1 parent 5ef1be5 commit 065a8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appendix_python.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@
13641364
"sum = 0\n",
13651365
"for i in xrange(10000):\n",
13661366
" # % is the modulo operator\n",
1367-
" if x % 3 == 0 or x % 5 == 0:\n",
1367+
" if i % 3 == 0 or i % 5 == 0:\n",
13681368
" sum += i\n"
13691369
],
13701370
"language": "python",
@@ -3164,4 +3164,4 @@
31643164
"metadata": {}
31653165
}
31663166
]
3167-
}
3167+
}

0 commit comments

Comments
 (0)