Answer to Question #101974 in Python for angie

Question #101974
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 3 Instructions
Use the code snippet above to write a program that uses looping to output the following shape:

THIRD
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
1
Expert's answer
2020-01-30T04:42:03-0500
def pattern(number):
	for i in range(number,-1,-1):
		for j in range(number-i):
			print("*", end=" ")
		print("")
number= int(input(" Enter the number for the pattern "))
pattern(number)

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