Answer to Question #224590 in Python for Hari nadh babu

Question #224590

W pattern with *


This Program name is W pattern with *. Write a Python program to W pattern with *, it has two test cases


The below link contains W pattern with * question, explanation and test cases


https://drive.google.com/file/d/1gcmmsSrPkGTY3aHoyGuw-x3qFFFnLTeb/view?usp=sharing


We need exact output when the code was run

1
Expert's answer
2021-08-10T12:30:56-0400
N = int(input())


print("* " * (2 * N - 1))
for k in range(1, N):
    print(" " * k, end="")
    print("* " * (N - k), end="")
    print("  " * (k - 1), end="")
    print("* " * (N - k))




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