Learning Scientific Programming with Python (2nd edition)

P2.5.1: Pascal's triangle #2

Question P2.5.1

Modify your solution to Problem 2.4.4 to output the first 50 rows of Pascal's triangle, but instead of the numbers themselves, output an asterisk if the number is odd and a space if it is even.