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()
LATEST TUTORIALS
APPROVED BY CLIENTS