News

Star triangle pattern in Python. For example, with a right-angle triangle, the number of stars on any given row is equal to the row you're on. Here's the code for that: for i in range(0,10): for j in ...
Rows zero through five of Pascal’s triangle. The pattern continues on into infinity. Two of the sides are filled with 1's and all the other numbers are generated by adding the two numbers above.