Question: Write a Python program called triglist.py to generate and display the pattern illustrated by the following examples of the program's expected input / output ,

Write a Python program called triglist.py to generate and display the pattern illustrated by the following examples of the program's expected input/output, where n is a positive integer provided as input: Enter a positive integer n: 1[1] Enter a positive integer n: 2[1]][1,3] Enter a positive integer n: 3[1][1,3](1,3,6] Enter a positive integer n: 9[1][1,31[1,3,6]11,3,6,10][1,3,6,10,15][1,3,6,10,15,21][1,3,6,10,15,21,28][1,3,6,10,15,21,28,36][1,3,6,10,15,21,28,36,45]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!