Skip to content

Instantly share code, notes, and snippets.

@jiffyclub
Created September 24, 2012 21:15
Conway's Game of Life in an IPython Notebook
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kay1223
Copy link

Kay1223 commented Sep 13, 2016

Does not work... because of "xrange" is not defined, my notebook said.

@jmeier1963
Copy link

@Kay1223: It should work fine with Python 2.7

@snordhausen
Copy link

To make this work in Python 3, replace all xrange with range (3 replacements) and also replace length/2 with length//2. Then it works fine in Python 3.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment