PascalsPascal's triangle is a simple and effective way to expand a set of brackets in the form (a + b)n. In my code the user is asked an input for what order(n) they want and it outputs pascals triangleⁿ.
The Code: In my code the user is asked an input for what order (n) they want and it outputs Pascal's triangle.
The Code
I added in comments to help youryou understand my reasoning.
Output:
**Calling basic_pascals(8): **
Output
Calling basic_pascals(8)
**Calling pascals_triangle(8): **
Calling pascals_triangle(8)
Improvements
Improvements:
I I want to make my code a bit more concise and easier to understand. I even have to think about why I do certain things sometimes.
Any improvements please do share.
Thanks.