This function prints list with 'A' for 1 and ' ' for 0 value.
(list)
| 21 | return temp |
| 22 | |
| 23 | def 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 | |
| 32 | if __name__=='__main__': |
| 33 | '''This program generates snoflake pattern''' |
no outgoing calls
no test coverage detected