Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Using Python Project First Ask User Enter Number 1 9 1 Exit Program Display Pattern Based Q35615008

Using Python:

For this project, first, ask the user to enter a number from 1to 9 (or -1 to exit the program). Then display a pattern based onthe entered number. For example, if the user enters 3 display:

1

2

2

3

3

3

Or if the user enters 5 display:

1

2

2

3

3

3

4

4

4

4

5

5

5

5

5

Keep running the program until the user enters -1 to end.

Note that you need to use two nested loops for the pattern.

Leave a Reply

Your email address will not be published. Required fields are marked *