Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ create_canvas
Function
create_canvas
cellular_automata/game_of_life.py:44–46 ·
view source on GitHub ↗
(size: int)
Source
from the content-addressed store, hash-verified
42
43
44
def
create_canvas(size: int) -> list[list[bool]]:
45
canvas = [[False
for
i in range(size)]
for
j in range(size)]
46
return
canvas
47
48
49
def
seed(canvas: list[list[bool]]) -> None:
Callers
2
run
Function · 0.85
game_of_life.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected