Answer to Question #122327 in Python for Joe

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

THIRD
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
1
Expert's answer
2020-06-15T15:02:42-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS