Question: Using Python Try to make it in the least amount of code lines. Thanks you, so far i have... num = 1 while(num 0): print

Using Python Try to make it in the least amount of codeUsing Python Try to make it in the least amount of code lines.

Thanks you,

so far i have...

num = 1 while(num 0): print ("-"*num) num = num - 1

** But I cant make it increase by one in the same loop. That is where my question is.

Write a program that uses loops to generate pyramid-like shapes as shown below, using dashes: program MUST use at least two loops

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 Databases Questions!