id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

peter@norvig.com > life_string
prev  |  next  |  chance

In this exercise, you will build up a string giving a graphical description of a world: a string consisting of the character '#' (hash) to represent a live cell, '.' (period) to represent a dead cell, and '\n' (newline) to separate one row from the next.


...Save, Compile, Run (ctrl-enter)

def life_string(cells):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy