Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Conway's Game of Life in an IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Copy link

Kay1223 commented Sep 13, 2016

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

Copy link

jmeier1963 commented Nov 10, 2018

@Kay1223: It should work fine with Python 2.7

Copy link

snordhausen commented Apr 16, 2020

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