Answer to Question #314153 in Python for junior

Question #314153

Write a program that uses loops to print out a design of following using asterisks:

* * * * *

* *

* * * * *

* * * * *

* *

* * * * *


* * * * *

* * * * *


* * * * *

* * * * *


The program should only use the following print statements:

print(“* * * * *”)

print(“* *”)

print(“\n”)

1
Expert's answer
2022-03-21T02:03:22-0400
n = int(input(''))
for i in range(n):
    print(“* * * * *”)

    print(“* *”)

    print(“\n”)

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