Computer Science, asked by vidyadwivedi03, 20 days ago

pascal triangle in python by for loop​

Answers

Answered by bommarajgouripriya
1

Explanation:

Step - 1: Taking input from the user to get the number of rows.

Step - 2: Declare an empty list that will store the values.

Step - 3: Using for loop, which will iterate through 0 to n - 1, append the sub-lists to the list.

Step - 4: Now append 1 to the list.

Attachments:
Similar questions