MCPcopy Create free account
hub / github.com/ActiveState/code / p

Function p

recipes/Python/576539_Simple_Cellular_Automata_/recipe-576539.py:23–30  ·  view source on GitHub ↗

This function prints list with 'A' for 1 and ' ' for 0 value.

(list)

Source from the content-addressed store, hash-verified

21 return temp
22
23def p(list):
24 '''This function prints list with 'A' for 1 and ' ' for 0 value.'''
25 print ''
26 for each in list:
27 if each ==1:
28 print 'A',
29 else:
30 print ' ',
31
32if __name__=='__main__':
33 '''This program generates snoflake pattern'''

Callers 7

recipe-576539.pyFile · 0.70
recipe-577970.pyFile · 0.50
recipe-577969.pyFile · 0.50
recipe-576870.pyFile · 0.50
recipe-577714.pyFile · 0.50
recipe-511510.pyFile · 0.50
recipe-577696.pyFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected