pascal triangle in python by for loop
Answers
Answered by
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
Hindi,
10 days ago
English,
20 days ago
India Languages,
20 days ago
Chemistry,
9 months ago
Science,
9 months ago