Advance pattern python webkul interview

# n=4 *
# * *
# ****eeee* *
# * **** * *
# * * **** *
# * *eeee****
# * *
# *

n=4

for i in range(n//2):
for j in range(3*n+n//2+1):
p…


This content originally appeared on DEV Community and was authored by Navnit Rai

# n=4                  *    
#                      * *
#              ****eeee*   *
#         *    ****    * *
#       * *    ****    *
#     *   *eeee****
#       * *
#         *


n=4

for i in range(n//2):
    for j in range(3*n+n//2+1):
        print(' ',end='')
    for j in range(i+1):
        print('*',end='')
    print()

for i in range(1):
    for j in range(n+n//2+1):
        print(' ',end='')
    for j in range(n):
        print('*',end='')
    for j in range(n):
        print('e',end='')
    print('*',end='')
    for j in range(n//2-1):
        print(' ',end='')
    print('*')

for i in range(n//2):
    for j in range(n//2-i):
        print(' ',end='')
    for j in range(i+1):
        print('*',end='')
    for j in range(n):
        print(' ',end='')
    for j in range(n):
        print('*',end='')
    for j in range(n):
        print(' ',end='')
    for j in range(n//2-i):
        print('*',end='')
    print()

for i in range(1):
    print('*',end='')
    for j in range(n//2-1):
        print(' ',end='')
    print('*',end='')
    for j in range(n):
        print('e',end='')
    for j in range(n):
        print('*',end='')
    print()

for i in range(n//2):
    for j in range(i+1):
        print(' ',end='')
    for j in range(n//2-i):
        print('*',end='')
    print()


This content originally appeared on DEV Community and was authored by Navnit Rai


Print Share Comment Cite Upload Translate Updates
APA

Navnit Rai | Sciencx (2024-09-06T02:25:08+00:00) Advance pattern python webkul interview. Retrieved from https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/

MLA
" » Advance pattern python webkul interview." Navnit Rai | Sciencx - Friday September 6, 2024, https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/
HARVARD
Navnit Rai | Sciencx Friday September 6, 2024 » Advance pattern python webkul interview., viewed ,<https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/>
VANCOUVER
Navnit Rai | Sciencx - » Advance pattern python webkul interview. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/
CHICAGO
" » Advance pattern python webkul interview." Navnit Rai | Sciencx - Accessed . https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/
IEEE
" » Advance pattern python webkul interview." Navnit Rai | Sciencx [Online]. Available: https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/. [Accessed: ]
rf:citation
» Advance pattern python webkul interview | Navnit Rai | Sciencx | https://www.scien.cx/2024/09/06/advance-pattern-python-webkul-interview/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.