Computer Science, asked by vidyadwivedi03, 6 days ago

pascal triangle in python using for loop

Answers

Answered by meenabsarkate09
1

Answer:

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

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

3. Step-3: Using for loop, which will iterate through

0 to n-1, append the sub-lists to the list.

4. Step-4: Now append 1 to the list.

Similar questions