game of life python


Can someone please do my program, i’m not a pro at this and i’m despertly looking for help. this is the beginning

import numpy as np import pprint               #0  #1 world = np.array([[0, 1, 1, 0, 0], #0               [0, 0, 0, 0, 0],               [0, 0, 1, 0, 1],               [0, 0, 1, 1, 0],               [1, 1, 0, 0, 0]]) print (world) for i in world[0,:] : if i == 1: 

if 2 cells are next to each other, one new cell is born, if 4 cells are together, one cells dies. only in a horizental way