Question #122327

Use the code snippet above to write a program that uses looping to output the following shape:


THIRD

*

* *

* * *

* * * *

* * * * *

* * * * * *

* * * * * * *

* * * * * * * *

* * * * * * * * *

Expert's answer

print('THIRD')

for i in range(0, 9):
  for j in range(0, 9):
    if (j <= i):
      print('*', end='')
  print()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS