We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Designer Door Mat
- Discussions
Designer Door Mat
Designer Door Mat
Sort by
recency
|
1756 Discussions
|
Please Login in order to post a comment
N, M = map(int,input().split()) # Altura de la figura (impar) patron = '.|.' W = "WELCOME"
estamos haciendo la parte de arriba el primer triangulo
for i in range(1, N, 2): print((patron * i).center(M,'-'))
welcome
print(W.center(M,'-'))
ahora el mismo triangulo pero devolviendose
for i in range(N-2, -1, -2): print((patron * i).center(M,'-'))
That's such a creative task for Mr. Vincent! Designing a door mat with precise specifications while incorporating "WELCOME" in the center sounds like both a challenge and an opportunity to show artistic skill. fairplay login
n,m=map(int,input().split()) for i in range(n): if in//2: print((".|."*((n-i-1)*2+1)).center(m, "-") `