Hi I need help, This assignment is for Assignment 6 Question 3 in edhesive for computer science. here is the prompt:

Assignment 6: Question 4


Instructions

Assignment 6: Code Snippet

Use the code snippet provided below as the basis for your work on each question in Assignment 6. Note that you may need more than two for loops for shapes in some of the questions.

for i in range(3):
for j in range(3-i):
print("*", end=" ")
print("")

Question 4 Instructions

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

FOURTH

* * * * * * * * * *
* * * * * * * * *
* * * * * * * *
* * * * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*

And here is the code that I currently have:

print("THIRD")
for i in range(9):
for j in range(10-i):
print("*", end=" ")
for j in range(i):
print("*", end=" ")
print("")

Please help I don't understand what I m doing wrong and I cant find help anywhere(Also I am in highschool not middle school if that helps anyone)

Respuesta :

Answer: print("THIRD")

for i in range(10):

   for j in range(10-i):

       print(" ", end=" ")

   for j in range(i):

       print("*", end=" ")

   print("")

Explanation:

You're Welcome yall

print("THIRD")

for i in range(10):

   for j in range(10-i):

       print(" ", end=" ")

   for j in range(i):

       print("*", end=" ")

   print("")

In this exercise, using the knowledge of computational language in python, we have that this code will be written as:

The code is in the attached image.

We can write the python as:

print("THIRD")

for i in range(10):

  for j in range(10-i):

      print(" ", end=" ")

  for j in range(i):

      print("*", end=" ")

  print("")

See more about python at brainly.com/question/18502436

Ver imagen lhmarianateixeira