Question: Use python. Make sure all test cases work Row 5 should be : 14641 Function name: pascal_dictionary Returns: dictionary Description: The pascal triangle is created
Function name: pascal_dictionary Returns: dictionary Description: The pascal triangle is created by adding adjacent elements from the previous row. Write a function that takes in an integer representing the number of rows. Return a dictionary where the key is the row and the value is a list of the numbers at that row, going up until the rows parameter. You must use recursion, and you may also use a for loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
