pascal triangle in python using for loop
Answers
Answered by
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
Computer Science,
3 days ago
Science,
3 days ago
Science,
6 days ago
Social Sciences,
8 months ago
Physics,
8 months ago
Math,
8 months ago