def p(list):
    '''This function prints list with 'A' for 1 and ' ' for 0 value.''' 
    print ''
    for each in list:
        if each ==1:
            print 'A',
        else:
            print ' ',
This function prints list with 'A' for 1 and ' ' for 0 value.
recipes/Python/576539_Simple_Cellular_Automata_/recipe-576539.py