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:
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)
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment